diff options
author | 2021-02-08 10:34:45 +0100 | |
---|---|---|
committer | 2021-02-08 10:34:45 +0100 | |
commit | 035002ceedf78d5ec73eabc0df7f06139939b967 (patch) | |
tree | 1c0d1e9531bae05fb65d70b9ea25baf404b74fe1 /src/lib | |
parent | docs: add k0staa as a contributor (#1193) (diff) | |
download | ferdium-app-035002ceedf78d5ec73eabc0df7f06139939b967.tar.gz ferdium-app-035002ceedf78d5ec73eabc0df7f06139939b967.tar.zst ferdium-app-035002ceedf78d5ec73eabc0df7f06139939b967.zip |
Synchronize with Franz 5.6.0 (#1033)
Co-authored-by: FranzBot <i18n@meetfranz.com>
Co-authored-by: vantezzen <hello@vantezzen.io>
Co-authored-by: Makazzz <makazzzpro@live.ca>
Co-authored-by: Stefan Malzner <stefan@adlk.io>
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index dde4f694a..d0dc28da6 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -139,6 +139,10 @@ const menuItems = defineMessages({ | |||
139 | id: 'menu.view.lockFerdi', | 139 | id: 'menu.view.lockFerdi', |
140 | defaultMessage: '!!!Lock Ferdi', | 140 | defaultMessage: '!!!Lock Ferdi', |
141 | }, | 141 | }, |
142 | reloadTodos: { | ||
143 | id: 'menu.view.reloadTodos', | ||
144 | defaultMessage: '!!!Reload ToDos', | ||
145 | }, | ||
142 | minimize: { | 146 | minimize: { |
143 | id: 'menu.window.minimize', | 147 | id: 'menu.window.minimize', |
144 | defaultMessage: '!!!Minimize', | 148 | defaultMessage: '!!!Minimize', |
@@ -856,6 +860,8 @@ export default class FranzMenu { | |||
856 | accelerator: `${cmdKey}+Shift+Alt+I`, | 860 | accelerator: `${cmdKey}+Shift+Alt+I`, |
857 | click: () => { | 861 | click: () => { |
858 | this.actions.service.openDevToolsForActiveService(); | 862 | this.actions.service.openDevToolsForActiveService(); |
863 | const webview = document.querySelector('#todos-panel webview'); | ||
864 | if (webview) this.actions.todos.openDevTools(); | ||
859 | }, | 865 | }, |
860 | enabled: this.stores.user.isLoggedIn && this.stores.services.enabled.length > 0, | 866 | enabled: this.stores.user.isLoggedIn && this.stores.services.enabled.length > 0, |
861 | }); | 867 | }); |
@@ -894,6 +900,12 @@ export default class FranzMenu { | |||
894 | window.location.reload(); | 900 | window.location.reload(); |
895 | }, | 901 | }, |
896 | }, { | 902 | }, { |
903 | label: intl.formatMessage(menuItems.reloadTodos), | ||
904 | accelerator: `${cmdKey}+Shift+Alt+R`, | ||
905 | click: () => { | ||
906 | this.actions.todos.reload(); | ||
907 | }, | ||
908 | }, { | ||
897 | type: 'separator', | 909 | type: 'separator', |
898 | }, { | 910 | }, { |
899 | label: intl.formatMessage(menuItems.lockFerdi), | 911 | label: intl.formatMessage(menuItems.lockFerdi), |