make gui open whenever no args are supplied

This commit is contained in:
Daniella / Tove 2022-08-21 20:03:06 +02:00
parent e4ff6329ec
commit 12728a4f17
3 changed files with 6 additions and 3 deletions

2
Cargo.lock generated
View file

@ -346,7 +346,7 @@ dependencies = [
[[package]] [[package]]
name = "qft" name = "qft"
version = "0.5.0" version = "0.5.1"
dependencies = [ dependencies = [
"iui", "iui",
"rand", "rand",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "qft" name = "qft"
version = "0.5.0" version = "0.5.1"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -271,7 +271,10 @@ fn main() {
"receiver" => receiver(&args, |_| {}), "receiver" => receiver(&args, |_| {}),
"gui" => gui::gui().expect("can't use gui"), "gui" => gui::gui().expect("can't use gui"),
"version" => println!("QFT version: {}", env!("CARGO_PKG_VERSION")), "version" => println!("QFT version: {}", env!("CARGO_PKG_VERSION")),
_ => print_args(&args), _ => match gui::gui() {
Ok(_) => {},
Err(_) => print_args(&args),
},
} }
} }