hide unsupported option

This commit is contained in:
antelle 2017-06-12 21:07:09 +02:00
parent 6163fa4ba8
commit 569c44f78c
2 changed files with 4 additions and 1 deletions

View File

@ -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;
},

View File

@ -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'),