mirror of https://github.com/keeweb/keeweb.git
hide unsupported option
This commit is contained in:
parent
6163fa4ba8
commit
569c44f78c
|
@ -177,6 +177,9 @@ const Launcher = {
|
|||
canMinimize: function() {
|
||||
return process.platform !== 'darwin';
|
||||
},
|
||||
canDetectOsSleep: function() {
|
||||
return process.platform !== 'linux';
|
||||
},
|
||||
updaterEnabled: function() {
|
||||
return this.electron().remote.process.argv.indexOf('--disable-updater') === -1;
|
||||
},
|
||||
|
|
|
@ -80,7 +80,7 @@ const SettingsGeneralView = Backbone.View.extend({
|
|||
canAutoUpdate: Updater.enabled,
|
||||
canMinimize: Launcher && Launcher.canMinimize(),
|
||||
canDetectMinimize: !!Launcher,
|
||||
canDetectOsSleep: !!Launcher,
|
||||
canDetectOsSleep: Launcher && Launcher.canDetectOsSleep(),
|
||||
canAutoType: AutoType.enabled,
|
||||
lockOnMinimize: Launcher && AppSettingsModel.instance.get('lockOnMinimize'),
|
||||
lockOnCopy: AppSettingsModel.instance.get('lockOnCopy'),
|
||||
|
|
Loading…
Reference in New Issue