Add logic to return to DiagMenu
This commit is contained in:
parent
710b9d7c16
commit
fe12b3c4e2
3 changed files with 3 additions and 0 deletions
|
|
@ -338,6 +338,7 @@ impl App {
|
|||
self.action_tx.send(Action::SetMode(Mode::Failed))?;
|
||||
}
|
||||
Action::BootScan => self.action_tx.send(Action::SetMode(Mode::BootScan))?,
|
||||
Action::DiagMainMenu => self.action_tx.send(Action::SetMode(Mode::DiagMenu))?,
|
||||
Action::InstallDriver => {
|
||||
self.action_tx.send(Action::SetMode(Mode::InstallDrivers))?;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@
|
|||
"<Enter>": "Process",
|
||||
"<Up>": "KeyUp",
|
||||
"<Down>": "KeyDown",
|
||||
"<m>": "DiagMainMenu",
|
||||
"<r>": "BootScan",
|
||||
"<s>": "ScanDisks",
|
||||
"<q>": "Quit",
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ pub enum Action {
|
|||
DiagLineStart { text: String },
|
||||
DiagLineUpdate { result: DiagResult, text: String },
|
||||
DiagLineEnd { text: String },
|
||||
DiagMainMenu,
|
||||
// App (Clone)
|
||||
Highlight(usize),
|
||||
InstallDriver,
|
||||
|
|
|
|||
Loading…
Reference in a new issue