Update PEMenu
This commit is contained in:
parent
2b2a5160fd
commit
c5a9dc80cb
8 changed files with 17 additions and 5 deletions
|
|
@ -687,7 +687,7 @@ fn get_chunks(r: Rect) -> Vec<Rect> {
|
||||||
fn build_footer_string(cur_mode: Mode) -> String {
|
fn build_footer_string(cur_mode: Mode) -> String {
|
||||||
match cur_mode {
|
match cur_mode {
|
||||||
Mode::BootDiags => String::from("(r) to refresh / (q) to quit"),
|
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")
|
String::from("(q) to quit")
|
||||||
}
|
}
|
||||||
Mode::InstallDrivers | Mode::InjectDrivers | Mode::SetBootMode => {
|
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"),
|
Mode::Failed => String::from("(Enter) or (q) to quit"),
|
||||||
// Invalid states
|
// 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?")
|
panic!("This shouldn't happen?")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
include/menu_entries/11_boot-diags.toml
Normal file
5
include/menu_entries/11_boot-diags.toml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
name = 'Boot-Diagnostics'
|
||||||
|
command = 'X:\tools\boot-diags.exe'
|
||||||
|
description = "Boot issue assessment tool"
|
||||||
|
use_conemu = true
|
||||||
|
separator = false
|
||||||
|
|
@ -237,8 +237,9 @@ impl App {
|
||||||
Action::Render => self.render(tui)?,
|
Action::Render => self.render(tui)?,
|
||||||
Action::SetMode(mode) => {
|
Action::SetMode(mode) => {
|
||||||
self.mode = mode;
|
self.mode = mode;
|
||||||
self.action_tx
|
self.action_tx.send(Action::UpdateFooter(String::from(
|
||||||
.send(Action::UpdateFooter(String::from("(Enter) to select")))?;
|
"(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_left_items(self))?;
|
||||||
self.action_tx.send(build_right_items(self))?;
|
self.action_tx.send(build_right_items(self))?;
|
||||||
self.action_tx.send(Action::Select(None, None))?;
|
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;
|
let start_index: usize;
|
||||||
if tool.use_conemu {
|
if tool.use_conemu {
|
||||||
cmd_path = app.config.conemu_path.clone();
|
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(tool.command.clone());
|
||||||
|
cmd_args.push(String::from("-new_console:n"));
|
||||||
start_index = 1;
|
start_index = 1;
|
||||||
} else {
|
} else {
|
||||||
cmd_path = PathBuf::from(tool.command.clone());
|
cmd_path = PathBuf::from(tool.command.clone());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue