fix(settings): use localization

This commit is contained in:
Fernando López Guevara
2025-07-29 21:21:06 -03:00
parent 5848f1c355
commit be720c0f76
4 changed files with 66 additions and 51 deletions

View File

@@ -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();
}