From 36b4001f4526b60f1c9b67a4a34596e5ad2bcca1 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 18 Jun 2026 02:52:35 +0300 Subject: feat: sync theme with host appearance refs #675 --- src/app/config_io.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/app/config_io.rs') diff --git a/src/app/config_io.rs b/src/app/config_io.rs index 7a196008..95014b30 100644 --- a/src/app/config_io.rs +++ b/src/app/config_io.rs @@ -43,7 +43,13 @@ impl App { pub(super) fn save_theme(&mut self, name: &str) { if self.update_config_file("theme", |content| { - crate::config::upsert_section_value(content, "theme", "name", &format!("\"{name}\"")) + let content = crate::config::upsert_section_value( + content, + "theme", + "name", + &format!("\"{name}\""), + ); + crate::config::upsert_section_bool(&content, "theme", "auto_switch", false) }) { self.apply_config_from_disk(false); } -- cgit v1.2.3