aboutsummaryrefslogtreecommitdiff
path: root/src/app/config_io.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-18 02:52:35 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-18 02:53:31 +0300
commit36b4001f4526b60f1c9b67a4a34596e5ad2bcca1 (patch)
tree520ab28a0a3f3f798e6e655fc83529e8617720e9 /src/app/config_io.rs
parentaca35ea76f3df15ec68fd07959d939f5e7a78a6c (diff)
feat: sync theme with host appearance
refs #675
Diffstat (limited to 'src/app/config_io.rs')
-rw-r--r--src/app/config_io.rs8
1 files changed, 7 insertions, 1 deletions
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);
}