Skip to content

Commit

Permalink
Prevent quit on immediate frontend in intercept mode
Browse files Browse the repository at this point in the history
Otherwise we quit before the immediate frontend had a chance to start.
The immediate frontend will then automatically and unconditionally quit
once it's finished.

One thing that we can still improve is to hide the GUI in intercept mode
once an event was intercepted.
  • Loading branch information
vimpostor committed Nov 19, 2023
1 parent 4d87107 commit 4bb2d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void Backend::handle_dropped_urls(const QList<QUrl> &urls) {
Backend::get()->print_hyperlinks(paths);
}

if (Settings::get()->auto_quit_behavior == Settings::AutoQuitBehavior::First) {
if (Settings::get()->auto_quit_behavior == Settings::AutoQuitBehavior::First && Settings::get()->effective_frontend(true) != Settings::Frontend::Immediate) {
Backend::get()->quit_delayed();
}
}

0 comments on commit 4bb2d78

Please sign in to comment.