Add missing back keys and footer text

This commit is contained in:
2Shirt 2025-11-30 21:03:24 -08:00
parent c572716ef9
commit 4658624988
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 6 additions and 2 deletions

View file

@ -211,6 +211,7 @@
"<Enter>": "Process",
"<Up>": "KeyUp",
"<Down>": "KeyDown",
"<b>": "PrevScreen",
"<q>": "Quit",
"<Ctrl-d>": "Quit",
"<Ctrl-c>": "Quit",

View file

@ -149,7 +149,10 @@ impl App {
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 => {
if let Ok(wim_sources) = self.state.wim_sources.lock()
&& 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::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(
"(Enter) to continue / (b) to scan for backups / (n) to scan network / (q) to quit",