From a9378a003dea6232c3512cdc7a7430e12980cd0a Mon Sep 17 00:00:00 2001 From: XOR-op <17672363+XOR-op@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:09:12 -0400 Subject: [PATCH] fix: defauit quit option --- app/src/app.rs | 2 +- app/src/signals.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/app.rs b/app/src/app.rs index 8725189d..6a6a116a 100644 --- a/app/src/app.rs +++ b/app/src/app.rs @@ -202,7 +202,7 @@ impl App { use std::os::unix::ffi::OsStrExt; std::fs::write(p, paths.as_bytes()).ok(); } - return emit!(Quit(true)); + return emit!(Quit(false)); } if let Some(opener) = opener { diff --git a/app/src/signals.rs b/app/src/signals.rs index da183f52..a01caa39 100644 --- a/app/src/signals.rs +++ b/app/src/signals.rs @@ -64,7 +64,7 @@ impl Signals { while let Some(signal) = signals.next().await { match signal { SIGHUP | SIGTERM | SIGQUIT | SIGINT => { - if tx.send(Event::Quit(true)).is_err() { + if tx.send(Event::Quit(false)).is_err() { break; } }