Fix "Leave app running in notification area" checkbox not working on macOS
This commit is contained in:
@@ -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
|
||||
|
@@ -20,6 +20,7 @@ function loadDefault(version) {
|
||||
showTrayIcon: false,
|
||||
trayIconTheme: '',
|
||||
disablewebsecurity: true,
|
||||
minimizeToTray: false,
|
||||
toggleWindowOnTrayIconClick: false,
|
||||
version: 1,
|
||||
notifications: {
|
||||
|
Reference in New Issue
Block a user