mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: defauit quit option
This commit is contained in:
parent
9c6fa4ec93
commit
a9378a003d
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue