fix(settings): use localization
This commit is contained in:
1 parent
5848f1c355
commit
be720c0f76
4 files changed
+66
-51
No files matched your search
@@ -112,9 +112,7 @@ impl ChromePanelAction {
|
||||
fn process(&self, ctx: &mut AppContext, chrome: &mut Chrome, ui: &mut egui::Ui) {
|
||||
match self {
|
||||
Self::SaveTheme(theme) => {
|
||||
ui.ctx().options_mut(|o| {
|
||||
o.theme_preference = *theme;
|
||||
});
|
||||
ui.ctx().set_theme(*theme);
|
||||
ctx.settings_handler.set_theme(*theme);
|
||||
ctx.settings_handler.save();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user