mirror of https://github.com/vector-im/riot-web
Theme setting needs to update local state
parent
19e94b9e32
commit
fb7913580e
|
@ -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});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue