From cc9fa47540d8525f24fe46a10f759ca40090a6e0 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Tue, 4 Aug 2026 17:26:30 +0300 Subject: feat(ui): add distinct status indicators (#2282) refs #2260 --- src/app/config_io.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/app/config_io.rs') diff --git a/src/app/config_io.rs b/src/app/config_io.rs index 59077b6f..9f7445b9 100644 --- a/src/app/config_io.rs +++ b/src/app/config_io.rs @@ -55,6 +55,19 @@ impl App { } } + pub(super) fn save_status_indicators(&mut self, style: crate::config::StatusIndicatorStyle) { + if self.update_config_file("status indicators", |content| { + crate::config::upsert_section_value( + content, + "ui", + "status_indicators", + &format!("\"{}\"", style.as_str()), + ) + }) { + self.apply_config_from_disk(false); + } + } + pub(super) fn save_sound(&mut self, enabled: bool) { if self.update_config_file("sound setting", |content| { crate::config::upsert_section_bool(content, "ui.sound", "enabled", enabled) -- cgit v1.2.3