Add missing back keys and footer text
This commit is contained in:
parent
c572716ef9
commit
4658624988
2 changed files with 6 additions and 2 deletions
|
|
@ -211,6 +211,7 @@
|
||||||
"<Enter>": "Process",
|
"<Enter>": "Process",
|
||||||
"<Up>": "KeyUp",
|
"<Up>": "KeyUp",
|
||||||
"<Down>": "KeyDown",
|
"<Down>": "KeyDown",
|
||||||
|
"<b>": "PrevScreen",
|
||||||
"<q>": "Quit",
|
"<q>": "Quit",
|
||||||
"<Ctrl-d>": "Quit",
|
"<Ctrl-d>": "Quit",
|
||||||
"<Ctrl-c>": "Quit",
|
"<Ctrl-c>": "Quit",
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,10 @@ impl App {
|
||||||
String::from("Scanning Disks..."),
|
String::from("Scanning Disks..."),
|
||||||
))?;
|
))?;
|
||||||
}
|
}
|
||||||
Mode::ScanWinSources => self.state.scan_wim_local(ScanType::WindowsInstallers),
|
Mode::ScanWinSources => {
|
||||||
|
self.state.reset_all();
|
||||||
|
self.state.scan_wim_local(ScanType::WindowsInstallers);
|
||||||
|
}
|
||||||
Mode::SetUserName => {
|
Mode::SetUserName => {
|
||||||
if let Ok(wim_sources) = self.state.wim_sources.lock()
|
if let Ok(wim_sources) = self.state.wim_sources.lock()
|
||||||
&& let Some(index) = self.state.wim_image_index
|
&& let Some(index) = self.state.wim_image_index
|
||||||
|
|
@ -427,7 +430,7 @@ fn build_footer_string(cur_mode: Mode) -> String {
|
||||||
),
|
),
|
||||||
Mode::SelectTableType => String::from("(Enter) to select / (b) to go back / (q) to quit"),
|
Mode::SelectTableType => String::from("(Enter) to select / (b) to go back / (q) to quit"),
|
||||||
Mode::SelectWinSource | Mode::SelectWinImage => {
|
Mode::SelectWinSource | Mode::SelectWinImage => {
|
||||||
String::from("(Enter) to select / (q) to quit")
|
String::from("(Enter) to select / (b) to go back / (q) to quit")
|
||||||
}
|
}
|
||||||
Mode::ScanWinSources => String::from(
|
Mode::ScanWinSources => String::from(
|
||||||
"(Enter) to continue / (b) to scan for backups / (n) to scan network / (q) to quit",
|
"(Enter) to continue / (b) to scan for backups / (n) to scan network / (q) to quit",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue