Theme setting needs to update local state

This commit is contained in:
J. Ryan Stinnett 2019-02-12 09:17:24 +00:00
parent 19e94b9e32
commit fb7913580e

View file

@ -54,6 +54,7 @@ export default class GeneralUserSettingsTab extends React.Component {
if (this.state.theme === newTheme) return; if (this.state.theme === newTheme) return;
SettingsStore.setValue("theme", null, SettingLevel.ACCOUNT, newTheme); SettingsStore.setValue("theme", null, SettingLevel.ACCOUNT, newTheme);
this.setState({theme: newTheme});
dis.dispatch({action: 'set_theme', value: newTheme}); dis.dispatch({action: 'set_theme', value: newTheme});
}; };