Merge pull request #465 from yuya-oc/fix-tray-theme-save

Fix the setting not saved when changing tray icon theme
This commit is contained in:
Yuya Ochiai
2017-03-16 20:19:29 +09:00
committed by GitHub
3 changed files with 27 additions and 0 deletions

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>