refs #1055 Add a tray menu to open window

This commit is contained in:
AkiraFukushima 2019-10-13 16:07:35 +09:00
parent 39aac45e1d
commit 32e950e047
9 changed files with 18 additions and 0 deletions

View File

@ -8,6 +8,7 @@
"hide": "Whalebird verstecken",
"hide_others": "Andere verstecken",
"show_all": "Alle anzeigen",
"open": "Open Window",
"quit": "Beenden"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "Hide Whalebird",
"hide_others": "Hide Others",
"show_all": "Show All",
"open": "Open Window",
"quit": "Quit"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "Cacher Whalebird",
"hide_others": "Cacher les autres",
"show_all": "Tout afficher",
"open": "Ouvrir la fenêtre",
"quit": "Quitter"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "Nascondi Whalebird",
"hide_others": "Nascondi Altri",
"show_all": "Mostra Tutto",
"open": "Apri Finestra",
"quit": "Esci"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "Whalebirdを隠す",
"hide_others": "ほかを隠す",
"show_all": "すべてを表示",
"open": "ウィンドウを開く",
"quit": "終了"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "Whalebird 숨기기",
"hide_others": "나머지 숨기기",
"show_all": "모두 보이기",
"open": "창 열기",
"quit": "나가기"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "Ukryj Whalebird",
"hide_others": "Ukryj pozostałe",
"show_all": "Pokaż wszystkie",
"open": "Open Window",
"quit": "Wyjdź"
},
"toot": {

View File

@ -8,6 +8,7 @@
"hide": "隐藏 Whalebird",
"hide_others": "隐藏其它窗口",
"show_all": "全部显示",
"open": "打开窗口",
"quit": "退出"
},
"toot": {

View File

@ -1291,6 +1291,16 @@ const ApplicationMenu = (accountsChange: Array<MenuItemConstructorOptions>, i18n
const TrayMenu = (accountsChange: Array<MenuItemConstructorOptions>, i18n: i18n.i18n): Menu => {
const template: Array<MenuItemConstructorOptions> = [
...accountsChange,
{
label: i18n.t('main_menu.application.open'),
click: async () => {
if (mainWindow) {
mainWindow.show()
} else {
await createWindow()
}
}
},
{
label: i18n.t('main_menu.application.quit'),
click: () => {