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))?;
|
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))?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue