Remove options to be deprecated
This commit is contained in:
parent
c76797e68e
commit
f5320197ab
|
@ -198,16 +198,6 @@ const SettingsPage = React.createClass({
|
||||||
);
|
);
|
||||||
|
|
||||||
var options = [];
|
var options = [];
|
||||||
if (process.platform === 'win32' || process.platform === 'linux') {
|
|
||||||
options.push(
|
|
||||||
<Checkbox
|
|
||||||
key='inputHideMenuBar'
|
|
||||||
id='inputHideMenuBar'
|
|
||||||
ref='hideMenuBar'
|
|
||||||
checked={this.state.hideMenuBar}
|
|
||||||
onChange={this.handleChangeHideMenuBar}
|
|
||||||
>{'Hide menu bar (Press Alt to show menu bar)'}</Checkbox>);
|
|
||||||
}
|
|
||||||
if (process.platform === 'darwin' || process.platform === 'linux') {
|
if (process.platform === 'darwin' || process.platform === 'linux') {
|
||||||
options.push(
|
options.push(
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
@ -257,7 +247,7 @@ const SettingsPage = React.createClass({
|
||||||
>{'Start app on login.'}</Checkbox>);
|
>{'Start app on login.'}</Checkbox>);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'darwin' || process.platform === 'linux') {
|
if (process.platform === 'linux') {
|
||||||
options.push(
|
options.push(
|
||||||
<Checkbox
|
<Checkbox
|
||||||
key='inputMinimizeToTray'
|
key='inputMinimizeToTray'
|
||||||
|
@ -269,17 +259,6 @@ const SettingsPage = React.createClass({
|
||||||
>{this.state.trayWasVisible || !this.state.showTrayIcon ? 'Leave app running in notification area when the window is closed' : 'Leave app running in notification area when the window is closed (available on next restart)'}</Checkbox>);
|
>{this.state.trayWasVisible || !this.state.showTrayIcon ? 'Leave app running in notification area when the window is closed' : 'Leave app running in notification area when the window is closed (available on next restart)'}</Checkbox>);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
|
||||||
options.push(
|
|
||||||
<Checkbox
|
|
||||||
key='inputToggleWindowOnTrayIconClick'
|
|
||||||
id='inputToggleWindowOnTrayIconClick'
|
|
||||||
ref='toggleWindowOnTrayIconClick'
|
|
||||||
checked={this.state.toggleWindowOnTrayIconClick}
|
|
||||||
onChange={this.handleChangeToggleWindowOnTrayIconClick}
|
|
||||||
>{'Toggle window visibility when clicking on the tray icon.'}</Checkbox>);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.platform === 'darwin' || process.platform === 'win32') {
|
if (process.platform === 'darwin' || process.platform === 'win32') {
|
||||||
options.push(
|
options.push(
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|
|
@ -50,7 +50,7 @@ describe('browser/settings.html', function desc() {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Options', () => {
|
describe('Options', () => {
|
||||||
describe('Hide Menu Bar', () => {
|
describe.skip('Hide Menu Bar', () => {
|
||||||
it('should appear on win32 or linux', () => {
|
it('should appear on win32 or linux', () => {
|
||||||
const expected = (process.platform === 'win32' || process.platform === 'linux');
|
const expected = (process.platform === 'win32' || process.platform === 'linux');
|
||||||
env.addClientCommands(this.app.client);
|
env.addClientCommands(this.app.client);
|
||||||
|
@ -152,8 +152,8 @@ describe('browser/settings.html', function desc() {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Minimize to tray', () => {
|
describe('Minimize to tray', () => {
|
||||||
it('should appear on darwin or linux', () => {
|
it('should appear on linux', () => {
|
||||||
const expected = (process.platform === 'darwin' || process.platform === 'linux');
|
const expected = (process.platform === 'linux');
|
||||||
env.addClientCommands(this.app.client);
|
env.addClientCommands(this.app.client);
|
||||||
return this.app.client.
|
return this.app.client.
|
||||||
loadSettingsPage().
|
loadSettingsPage().
|
||||||
|
@ -161,7 +161,7 @@ describe('browser/settings.html', function desc() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Toggle window visibility when clicking on the tray icon', () => {
|
describe.skip('Toggle window visibility when clicking on the tray icon', () => {
|
||||||
it('should appear on win32', () => {
|
it('should appear on win32', () => {
|
||||||
const expected = (process.platform === 'win32');
|
const expected = (process.platform === 'win32');
|
||||||
env.addClientCommands(this.app.client);
|
env.addClientCommands(this.app.client);
|
||||||
|
|
Loading…
Reference in a new issue