diff --git a/config/config.json5 b/config/config.json5 index 90af2f8..3be6e80 100644 --- a/config/config.json5 +++ b/config/config.json5 @@ -211,6 +211,7 @@ "": "Process", "": "KeyUp", "": "KeyDown", + "": "PrevScreen", "": "Quit", "": "Quit", "": "Quit", diff --git a/win_installer/src/app.rs b/win_installer/src/app.rs index 2c9b953..401ccd2 100644 --- a/win_installer/src/app.rs +++ b/win_installer/src/app.rs @@ -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",