From fd9d47f0c01ff853d83413b76bd1630ec3f7a330 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 13 Apr 2025 12:09:18 -0400 Subject: [PATCH] Clean up. --- src/main.rs | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/main.rs b/src/main.rs index ab1c84b..d9c8474 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,21 +68,19 @@ fn main() -> Result<(), Box> { match args.gui { true => run_gui(root_path), - false => { + false => match args.tui { // Open the TUI editor if requested, otherwise use the QML GUI by default. - match args.tui { - true => run_tui(root_path), - false => { - // Relaunch the CLIDE GUI in a separate process. - Command::new(std::env::current_exe()?) - .args(&["--gui"]) - .stdout(Stdio::null()) - .stderr(Stdio::null()) - .stdin(Stdio::null()) - .spawn()?; - Ok(()) - } + true => run_tui(root_path), + false => { + // Relaunch the CLIDE GUI in a separate process. + Command::new(std::env::current_exe()?) + .args(&["--gui"]) + .stdout(Stdio::null()) + .stderr(Stdio::null()) + .stdin(Stdio::null()) + .spawn()?; + Ok(()) } - } + }, } }