diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/Menu.ts b/src/lib/Menu.ts index a90fd8bea..8ad4441d2 100644 --- a/src/lib/Menu.ts +++ b/src/lib/Menu.ts | |||
@@ -32,6 +32,7 @@ import { | |||
32 | nodeVersion, | 32 | nodeVersion, |
33 | osArch, | 33 | osArch, |
34 | toggleFullScreenKey, | 34 | toggleFullScreenKey, |
35 | downloadsShortcutKey, | ||
35 | } from '../environment'; | 36 | } from '../environment'; |
36 | import { CUSTOM_WEBSITE_RECIPE_ID, LIVE_API_FERDIUM_WEBSITE } from '../config'; | 37 | import { CUSTOM_WEBSITE_RECIPE_ID, LIVE_API_FERDIUM_WEBSITE } from '../config'; |
37 | import { ferdiumVersion } from '../environment-remote'; | 38 | import { ferdiumVersion } from '../environment-remote'; |
@@ -875,6 +876,15 @@ class FranzMenu implements StoresProps { | |||
875 | type: 'separator', | 876 | type: 'separator', |
876 | }, | 877 | }, |
877 | { | 878 | { |
879 | label: intl.formatMessage(globalMessages.downloads), | ||
880 | accelerator: `${downloadsShortcutKey()}`, | ||
881 | click: () => { | ||
882 | this.actions.ui.openDownloads({ path: '/downloadmanager' }); | ||
883 | }, | ||
884 | enabled: this.stores.user.isLoggedIn, | ||
885 | visible: !locked, | ||
886 | }, | ||
887 | { | ||
878 | label: intl.formatMessage(globalMessages.settings), | 888 | label: intl.formatMessage(globalMessages.settings), |
879 | accelerator: `${settingsShortcutKey()}`, | 889 | accelerator: `${settingsShortcutKey()}`, |
880 | click: () => { | 890 | click: () => { |
@@ -991,6 +1001,15 @@ class FranzMenu implements StoresProps { | |||
991 | } else { | 1001 | } else { |
992 | tpl[0].submenu = [ | 1002 | tpl[0].submenu = [ |
993 | { | 1003 | { |
1004 | label: intl.formatMessage(globalMessages.downloads), | ||
1005 | accelerator: `${downloadsShortcutKey()}`, | ||
1006 | click: () => { | ||
1007 | this.actions.ui.openDownloads({ path: '/downloadmanager' }); | ||
1008 | }, | ||
1009 | enabled: this.stores.user.isLoggedIn, | ||
1010 | visible: !locked, | ||
1011 | }, | ||
1012 | { | ||
994 | label: intl.formatMessage(globalMessages.settings), | 1013 | label: intl.formatMessage(globalMessages.settings), |
995 | accelerator: `${settingsShortcutKey()}`, | 1014 | accelerator: `${settingsShortcutKey()}`, |
996 | click: () => { | 1015 | click: () => { |