From a2f4945f8bc2c6fa9a3a676cb2c0f5e2b8d9dad2 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sun, 14 Apr 2024 19:15:00 +0100 Subject: [PATCH] fix: incomplete check only mode (#55) The implementation of the check only mode was incomplete --- src/lib.rs | 4 ++++ src/main.rs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 37b5448..67c98f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -377,6 +377,10 @@ impl Wish { pub fn listen(&self) { rstk::mainloop(); } + + pub fn destroy(&self) { + rstk::end_wish(); + } } impl Frontend for Wish { diff --git a/src/main.rs b/src/main.rs index 4951718..5ec8262 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,6 +40,11 @@ fn main() { process::exit(1); }); + // End the program if check only. + if args.check { + frontend.destroy(); + } + if let Err(e) = run(clafrica_conf, frontend.clone()) { frontend.raise_error("Application error", &e.to_string()); process::exit(1);