diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-11 23:31:36 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-11 23:34:20 +0300 |
| commit | fe693f613a23452e68589a4337863f217cc57930 (patch) | |
| tree | 8d60f6c5b0d8b31426c6623cc8b0c2415d481000 /src/app/config_io.rs | |
| parent | 84c0d003ddb19a8e95e7ad5206771a663913605b (diff) | |
feat: add optional pane border labels
Diffstat (limited to 'src/app/config_io.rs')
| -rw-r--r-- | src/app/config_io.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/app/config_io.rs b/src/app/config_io.rs index a9199561..0bf04831 100644 --- a/src/app/config_io.rs +++ b/src/app/config_io.rs @@ -72,6 +72,19 @@ impl App { } } + pub(super) fn save_agent_border_labels(&mut self, enabled: bool) { + if self.update_config_file("agent border labels", |content| { + crate::config::upsert_section_bool( + content, + "ui", + "show_agent_labels_on_pane_borders", + enabled, + ) + }) { + self.apply_config_from_disk(false); + } + } + pub(super) fn save_agent_panel_scope(&mut self, scope: crate::app::state::AgentPanelScope) { let value = match scope { crate::app::state::AgentPanelScope::CurrentWorkspace => { |
