Update PEMenu

This commit is contained in:
2Shirt 2025-02-16 23:16:26 -08:00
parent 2b2a5160fd
commit c5a9dc80cb
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
8 changed files with 17 additions and 5 deletions

View file

@ -687,7 +687,7 @@ fn get_chunks(r: Rect) -> Vec<Rect> {
fn build_footer_string(cur_mode: Mode) -> String {
match cur_mode {
Mode::BootDiags => String::from("(r) to refresh / (q) to quit"),
Mode::BootScan | Mode::BootSetup | Mode::Home | Mode::PEMenu | Mode::ScanDisks => {
Mode::BootScan | Mode::BootSetup | Mode::Home | Mode::ScanDisks => {
String::from("(q) to quit")
}
Mode::InstallDrivers | Mode::InjectDrivers | Mode::SetBootMode => {
@ -702,7 +702,12 @@ fn build_footer_string(cur_mode: Mode) -> String {
),
Mode::Failed => String::from("(Enter) or (q) to quit"),
// Invalid states
Mode::Confirm | Mode::Clone | Mode::PreClone | Mode::PostClone | Mode::SelectTableType => {
Mode::Confirm
| Mode::Clone
| Mode::PEMenu
| Mode::PreClone
| Mode::PostClone
| Mode::SelectTableType => {
panic!("This shouldn't happen?")
}
}

View file

@ -0,0 +1,5 @@
name = 'Boot-Diagnostics'
command = 'X:\tools\boot-diags.exe'
description = "Boot issue assessment tool"
use_conemu = true
separator = false

View file

@ -237,8 +237,9 @@ impl App {
Action::Render => self.render(tui)?,
Action::SetMode(mode) => {
self.mode = mode;
self.action_tx
.send(Action::UpdateFooter(String::from("(Enter) to select")))?;
self.action_tx.send(Action::UpdateFooter(String::from(
"(Enter) to select / (t) for terminal / (p) to power off / (r) to restart",
)))?;
self.action_tx.send(build_left_items(self))?;
self.action_tx.send(build_right_items(self))?;
self.action_tx.send(Action::Select(None, None))?;
@ -376,8 +377,9 @@ pub fn build_command(app: &App, tool: &Tool) -> TaskType {
let start_index: usize;
if tool.use_conemu {
cmd_path = app.config.conemu_path.clone();
cmd_args.push(String::from("-new_console:n"));
cmd_args.push(String::from("-run"));
cmd_args.push(tool.command.clone());
cmd_args.push(String::from("-new_console:n"));
start_index = 1;
} else {
cmd_path = PathBuf::from(tool.command.clone());