Fix "Leave app running in notification area" checkbox not working on macOS

This commit is contained in:
Yuya Ochiai
2016-12-07 01:06:59 +09:00
parent 0d2b08c9e8
commit 0ae07b964e
2 changed files with 2 additions and 3 deletions

View File

@@ -123,9 +123,7 @@ const SettingsPage = React.createClass({
});
},
handleChangeMinimizeToTray() {
var shouldMinimizeToTray =
(process.platform !== 'darwin' || !this.refs.showTrayIcon.props.checked) &&
!this.refs.minimizeToTray.props.checked;
const shouldMinimizeToTray = this.state.showTrayIcon && !this.refs.minimizeToTray.props.checked;
this.setState({
minimizeToTray: shouldMinimizeToTray