TUI #1
26
src/main.rs
26
src/main.rs
@ -68,21 +68,19 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
|
|
||||||
match args.gui {
|
match args.gui {
|
||||||
true => run_gui(root_path),
|
true => run_gui(root_path),
|
||||||
false => {
|
false => match args.tui {
|
||||||
// Open the TUI editor if requested, otherwise use the QML GUI by default.
|
// Open the TUI editor if requested, otherwise use the QML GUI by default.
|
||||||
match args.tui {
|
true => run_tui(root_path),
|
||||||
true => run_tui(root_path),
|
false => {
|
||||||
false => {
|
// Relaunch the CLIDE GUI in a separate process.
|
||||||
// Relaunch the CLIDE GUI in a separate process.
|
Command::new(std::env::current_exe()?)
|
||||||
Command::new(std::env::current_exe()?)
|
.args(&["--gui"])
|
||||||
.args(&["--gui"])
|
.stdout(Stdio::null())
|
||||||
.stdout(Stdio::null())
|
.stderr(Stdio::null())
|
||||||
.stderr(Stdio::null())
|
.stdin(Stdio::null())
|
||||||
.stdin(Stdio::null())
|
.spawn()?;
|
||||||
.spawn()?;
|
Ok(())
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user