Skip to content

Commit

Permalink
fix: incomplete check only mode (#55)
Browse files Browse the repository at this point in the history
The implementation of the check only mode was incomplete
  • Loading branch information
pythonbrad authored Apr 14, 2024
1 parent e7dd187 commit a2f4945
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ impl Wish {
pub fn listen(&self) {
rstk::mainloop();
}

pub fn destroy(&self) {
rstk::end_wish();
}
}

impl Frontend for Wish {
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2f4945

Please sign in to comment.