Skip to content

Commit

Permalink
add warning message
Browse files Browse the repository at this point in the history
when trying to use undo menu #610
  • Loading branch information
mifi committed Mar 29, 2022
1 parent 96ca159 commit b9578aa
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions public/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,21 @@ module.exports = (app, mainWindow, newVersion) => {
{
label: i18n.t('Edit'),
submenu: [
{ role: 'undo', label: i18n.t('Undo') },
{ role: 'redo', label: i18n.t('Redo') },
// TODO: See https://github.com/mifi/lossless-cut/issues/610
// { role: 'undo', label: i18n.t('Undo') },
// { role: 'redo', label: i18n.t('Redo') },
{
label: i18n.t('Undo'),
accelerator: 'CmdOrCtrl+Z',
click: async () => dialog.showMessageBox({ message: 'Undo/redo from the menu isn\'t currently working. Please use the keyboard shortcuts instead.' }),
},
{
label: i18n.t('Redo'),
accelerator: 'CmdOrCtrl+Shift+Z',
click: async () => dialog.showMessageBox({ message: 'Undo/redo from the menu isn\'t currently working. Please use the keyboard shortcuts instead.' }),
},


{ type: 'separator' },
{ role: 'cut', label: i18n.t('Cut') },
{ role: 'copy', label: i18n.t('Copy') },
Expand Down

0 comments on commit b9578aa

Please sign in to comment.