diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:32:35 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:32:35 +0300 |
| commit | f8c4d6a5f1bd4bcaee43ba3e1373465cd960cdc3 (patch) | |
| tree | 10e9d52f05b476f83a3ee88a87a7c8f7aca9eca6 /src/app/state.rs | |
| parent | 787786c62009f6c27a0091b61017ae5ad5c95c0e (diff) | |
feat: add per-agent sound overrides
Diffstat (limited to 'src/app/state.rs')
| -rw-r--r-- | src/app/state.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/app/state.rs b/src/app/state.rs index 440bfc17..92d729e8 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -1,5 +1,5 @@ +use crate::config::{Keybinds, SoundConfig}; use crossterm::event::{KeyCode, KeyModifiers}; -use crate::config::Keybinds; use ratatui::layout::{Direction, Rect}; use ratatui::style::Color; @@ -69,7 +69,7 @@ pub struct AppState { pub sidebar_collapsed: bool, pub confirm_close: bool, pub accent: Color, - pub sound: bool, + pub sound: SoundConfig, pub keybinds: Keybinds, } @@ -120,7 +120,10 @@ impl AppState { sidebar_collapsed: false, confirm_close: true, accent: Color::Cyan, - sound: true, + sound: SoundConfig { + enabled: false, + ..SoundConfig::default() + }, keybinds: Keybinds { split_vertical: (KeyCode::Char('v'), KeyModifiers::empty()), split_horizontal: (KeyCode::Char('-'), KeyModifiers::empty()), |
