Skip to content

Commit

Permalink
confirm before quit only on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Oct 16, 2024
1 parent cd3a06a commit ecbbde6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/rioterm/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl ApplicationHandler<EventPayload> for Application<'_> {
}
RioEventType::Rio(RioEvent::Exit) => {
if let Some(route) = self.router.routes.get_mut(&window_id) {
if self.config.confirm_before_quit {
if cfg!(target_os = "macos") && self.config.confirm_before_quit {
route.confirm_quit();
route.request_redraw();
} else {
Expand Down Expand Up @@ -610,7 +610,7 @@ impl ApplicationHandler<EventPayload> for Application<'_> {
WindowEvent::CloseRequested => {
self.router.routes.remove(&window_id);

if self.config.confirm_before_quit {
if cfg!(target_os = "macos") && self.config.confirm_before_quit {
return;
}

Expand Down

0 comments on commit ecbbde6

Please sign in to comment.