diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-18 02:52:35 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-18 02:53:31 +0300 |
| commit | 36b4001f4526b60f1c9b67a4a34596e5ad2bcca1 (patch) | |
| tree | 520ab28a0a3f3f798e6e655fc83529e8617720e9 /src/app/config_io.rs | |
| parent | aca35ea76f3df15ec68fd07959d939f5e7a78a6c (diff) | |
feat: sync theme with host appearance
refs #675
Diffstat (limited to 'src/app/config_io.rs')
| -rw-r--r-- | src/app/config_io.rs | 8 |
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); } |
