Makes the check for the tray icon a bit more lightweight

This commit is contained in:
Martin Gondermann
2016-07-03 23:04:36 +02:00
parent 3c0c448502
commit 04cbec9a5d
2 changed files with 8 additions and 11 deletions

View File

@@ -50,15 +50,9 @@ var SettingsPage = React.createClass({
if (process.platform === 'darwin') {
var currentWindow = remote.getCurrentWindow();
if (currentWindow.tray) {
this.setState({
trayWasVisible: true
});
} else {
this.setState({
trayWasVisible: false
});
}
this.setState({
trayWasVisible: currentWindow.trayWasVisible
});
}
},
handleTeamsChange: function(teams) {