diff options
author | 2020-05-13 03:36:03 +0530 | |
---|---|---|
committer | 2020-05-12 22:06:03 +0000 | |
commit | 7d30372a631033fb23611f5ab195491cc8a82bda (patch) | |
tree | 817e98737b384b568157bd1f3fb525af23cd6df7 /src/lib | |
parent | Review GitHub issues/pull requests templates (#732) (diff) | |
download | ferdium-app-7d30372a631033fb23611f5ab195491cc8a82bda.tar.gz ferdium-app-7d30372a631033fb23611f5ab195491cc8a82bda.tar.zst ferdium-app-7d30372a631033fb23611f5ab195491cc8a82bda.zip |
Fix crash when using Password Lock with TouchID API unavailable (#737)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 07a29a224..3c5fc6530 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -921,7 +921,7 @@ export default class FranzMenu { | |||
921 | tpl[5].submenu = this.todosMenu(); | 921 | tpl[5].submenu = this.todosMenu(); |
922 | } | 922 | } |
923 | } else { | 923 | } else { |
924 | const touchIdEnabled = this.stores.settings.app.useTouchIdToUnlock && systemPreferences.canPromptTouchID(); | 924 | const touchIdEnabled = isMac ? (this.stores.settings.app.useTouchIdToUnlock && systemPreferences.canPromptTouchID()) : false; |
925 | 925 | ||
926 | tpl[0].submenu.unshift({ | 926 | tpl[0].submenu.unshift({ |
927 | label: intl.formatMessage(menuItems.touchId), | 927 | label: intl.formatMessage(menuItems.touchId), |