Add logic to return to DiagMenu

This commit is contained in:
2Shirt 2025-06-04 21:58:01 -07:00
parent 710b9d7c16
commit fe12b3c4e2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 3 additions and 0 deletions

View file

@ -338,6 +338,7 @@ impl App {
self.action_tx.send(Action::SetMode(Mode::Failed))?; self.action_tx.send(Action::SetMode(Mode::Failed))?;
} }
Action::BootScan => self.action_tx.send(Action::SetMode(Mode::BootScan))?, Action::BootScan => self.action_tx.send(Action::SetMode(Mode::BootScan))?,
Action::DiagMainMenu => self.action_tx.send(Action::SetMode(Mode::DiagMenu))?,
Action::InstallDriver => { Action::InstallDriver => {
self.action_tx.send(Action::SetMode(Mode::InstallDrivers))?; self.action_tx.send(Action::SetMode(Mode::InstallDrivers))?;
} }

View file

@ -109,6 +109,7 @@
"<Enter>": "Process", "<Enter>": "Process",
"<Up>": "KeyUp", "<Up>": "KeyUp",
"<Down>": "KeyDown", "<Down>": "KeyDown",
"<m>": "DiagMainMenu",
"<r>": "BootScan", "<r>": "BootScan",
"<s>": "ScanDisks", "<s>": "ScanDisks",
"<q>": "Quit", "<q>": "Quit",

View file

@ -37,6 +37,7 @@ pub enum Action {
DiagLineStart { text: String }, DiagLineStart { text: String },
DiagLineUpdate { result: DiagResult, text: String }, DiagLineUpdate { result: DiagResult, text: String },
DiagLineEnd { text: String }, DiagLineEnd { text: String },
DiagMainMenu,
// App (Clone) // App (Clone)
Highlight(usize), Highlight(usize),
InstallDriver, InstallDriver,