feat: remove ModePicker overlay and related commands; update mode handling and documentation
This commit is contained in:
@@ -30,7 +30,6 @@ pub enum Action {
|
||||
OpenOverlay(Overlay),
|
||||
CloseOverlay,
|
||||
ToggleYoloArm,
|
||||
CycleAgentMode,
|
||||
SystemNote {
|
||||
kind: String,
|
||||
message: String,
|
||||
@@ -242,13 +241,6 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
|
||||
state.misc.yolo_armed = !state.misc.yolo_armed;
|
||||
state.dirty = true;
|
||||
}
|
||||
Action::CycleAgentMode => {
|
||||
let next = state.mode.cycle();
|
||||
state.set_mode(next);
|
||||
let toast = Toast::new(ToastKind::Info, format!("Mode: {}", state.mode.name()));
|
||||
state.push_toast(toast);
|
||||
state.dirty = true;
|
||||
}
|
||||
Action::SystemNote { kind: _kind, message } => {
|
||||
let toast = crate::app::state::types::Toast::new(
|
||||
crate::app::state::types::ToastKind::Info,
|
||||
|
||||
Reference in New Issue
Block a user