Theme setting needs to update local state
This commit is contained in:
parent
19e94b9e32
commit
fb7913580e
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ export default class GeneralUserSettingsTab extends React.Component {
|
|||
if (this.state.theme === newTheme) return;
|
||||
|
||||
SettingsStore.setValue("theme", null, SettingLevel.ACCOUNT, newTheme);
|
||||
this.setState({theme: newTheme});
|
||||
dis.dispatch({action: 'set_theme', value: newTheme});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue