From 8b7914e39513c0fce36cc12fa6b5041898cee0b4 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 1 May 2025 20:27:08 -0700 Subject: [PATCH] chrome: fix theme persistence Fixes: #832 Signed-off-by: William Casarin --- crates/notedeck_chrome/src/chrome.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs index 8195e7df..4ae2c068 100644 --- a/crates/notedeck_chrome/src/chrome.rs +++ b/crates/notedeck_chrome/src/chrome.rs @@ -51,10 +51,10 @@ impl ChromePanelAction { fn process(&self, ctx: &AppContext, chrome: &mut Chrome, ui: &mut egui::Ui) { match self { Self::SaveTheme(theme) => { - tracing::info!("Switching theme to {:?}", theme); ui.ctx().options_mut(|o| { o.theme_preference = *theme; }); + ctx.theme.save(*theme); } Self::Support => {