From d6de73458c4ef0649adb6c1ca047e7bbac5ce2a9 Mon Sep 17 00:00:00 2001 From: Martin Gondermann Date: Mon, 27 Jun 2016 09:36:22 +0200 Subject: [PATCH] MinimizeToTray-Setting is only shown on Windows --- src/browser/settings.jsx | 2 ++ test/specs/browser/settings_test.js | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/browser/settings.jsx b/src/browser/settings.jsx index d877c2d1..fa18d5a9 100644 --- a/src/browser/settings.jsx +++ b/src/browser/settings.jsx @@ -162,6 +162,8 @@ var SettingsPage = React.createClass({ if (process.platform === 'win32' || process.platform === 'linux') { options.push(); + } + if (process.platform === 'win32') { options.push(); } diff --git a/test/specs/browser/settings_test.js b/test/specs/browser/settings_test.js index fe87d3fc..c590cfbe 100644 --- a/test/specs/browser/settings_test.js +++ b/test/specs/browser/settings_test.js @@ -151,6 +151,16 @@ describe('browser/settings.html', function() { }); }); + describe('Minimize to tray', function() { + it('should appear win32', function() { + const expected = (process.platform === 'win32'); + env.addClientCommands(this.app.client); + return this.app.client + .loadSettingsPage() + .isExisting('#inputMinimizeToTray').should.eventually.equal(expected) + }); + }); + describe('Notifications', function() { it('should appear on win32', function() { const expected = (process.platform === 'win32');