Fix an issue where tray icon theme is not auto-saved

This commit is contained in:
Yuya Ochiai
2017-02-28 21:49:33 +09:00
parent 6121246d49
commit 538a622480

View File

@@ -348,6 +348,7 @@ const SettingsPage = React.createClass({
defaultChecked={this.state.trayIconTheme === 'light' || this.state.trayIconTheme === ''}
onChange={() => {
this.setState({trayIconTheme: 'light'});
setImmediate(this.startSaveConfig);
}}
>{'Light'}</Radio>
{' '}
@@ -358,6 +359,7 @@ const SettingsPage = React.createClass({
defaultChecked={this.state.trayIconTheme === 'dark'}
onChange={() => {
this.setState({trayIconTheme: 'dark'});
setImmediate(this.startSaveConfig);
}}
>{'Dark'}</Radio>
</FormGroup>