refactor: simplify settings editors

This commit is contained in:
objz committed 2026-09-04 12:02:06 +02:00
1 parent 6a4cab9405
commit ff64920b7b
7 files changed
+454 -1400

No files matched your search

+12
View File
@@ -17,3 +17,15 @@ fn removing_selected_last_profile_clamps_selection() {
assert_eq!(state.active_profile, None);
assert_eq!(state.list_state.selected, Some(1));
}
#[test]
fn info_pane_does_not_bind_desktop_toggle() {
let tmp = tempfile::tempdir().unwrap();
let mut state = SettingsState::new(tmp.path().to_path_buf());
state.pane = SettingsPane::Info;
assert!(matches!(
handle_key(&KeyEvent::from(KeyCode::Char('d')), &mut state, None),
SettingsAction::None
));
}