Desktop (macOS): Add macOS "Close Window" menu item and add name to Quit menu ()

* Add Close Window to macOS file menu

* Add Joplin to Quit menu item

On macOS the application name appears usually within the Quit menu item.

* Use performClose: selector for Close Window

* Revert Quit with name and add Quit string to translations

* Move Quit translation to joplin.pot

* Remove Quit string
pull/1495/head
Michael Schneider 2019-04-30 13:38:20 -07:00 committed by Laurent Cozic
parent ca7266cd69
commit af794a16d6
1 changed files with 8 additions and 0 deletions
ElectronClient/app

View File

@ -589,6 +589,14 @@ class Application extends BaseApplication {
newTodoItem,
newNotebookItem, {
type: 'separator',
visible: shim.isMac() ? true : false
}, {
label: _('Close Window'),
platforms: ['darwin'],
accelerator: 'Command+W',
selector: 'performClose:',
}, {
type: 'separator',
}, {
label: _('Import'),
submenu: importItems,