Skip to content

Commit

Permalink
Account for dialog close (Gtk.ResponseType.DELETE_EVENT)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilbyte authored and jllaneras committed Jan 11, 2024
1 parent d62659b commit 7063e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proton/vpn/app/gtk/widgets/headerbar/menu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _on_logout_clicked(self, *_):
logout_dialog.destroy()

confirm_logout = response == Gtk.ResponseType.YES
self.logout_enabled = response == Gtk.ResponseType.NO
self.logout_enabled = response in (Gtk.ResponseType.NO, Gtk.ResponseType.DELETE_EVENT)

if confirm_logout:
logger.info("Yes", category="ui", subcategory="dialog", event="logout")
Expand Down

0 comments on commit 7063e01

Please sign in to comment.