Only display titlebar style setting on macOS

This commit is contained in:
Enrico Monese 2017-03-26 16:36:07 +02:00
parent 978c9e06ce
commit ff65ef6cc6
2 changed files with 5 additions and 0 deletions

View File

@ -82,7 +82,10 @@ const SettingsGeneralView = Backbone.View.extend({
const updateFound = UpdateModel.instance.get('updateStatus') === 'found';
const updateManual = UpdateModel.instance.get('updateManual');
const storageProviders = this.getStorageProviders();
const platform = (typeof process !== 'undefined') ? process.platform : 'web';
this.renderTemplate({
platform: platform,
themes: this.allThemes,
activeTheme: AppSettingsModel.instance.get('theme'),
locales: this.allLocales,

View File

@ -64,6 +64,7 @@
<option value="2" {{#ifeq fontSize 2}}selected{{/ifeq}}>{{res 'setGenFontSizeLargest'}}</option>
</select>
</div>
{{#ifeq platform 'darwin'}}
<div>
<label for="settings__general-titlebar-style">{{res 'setGenTitlebarStyle'}}:</label>
<select class="settings__general-titlebar-style settings__select input-base" id="settings__general-titlebar-style">
@ -72,6 +73,7 @@
<option value="hidden-inset" {{#ifeq titlebarStyle 'hidden-inset'}}selected{{/ifeq}}>{{res 'setGenTitlebarStyleHiddenInset'}}</option>
</select>
</div>
{{/ifeq}}
<div>
<input type="checkbox" class="settings__input input-base settings__general-expand" id="settings__general-expand" {{#if expandGroups}}checked{{/if}} />
<label for="settings__general-expand">{{res 'setGenShowSubgroups'}}</label>