mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Theme setting needs to update local state
This commit is contained in:
parent
19e94b9e32
commit
fb7913580e
@ -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 New Issue
Block a user