From b73f474800776a78900d976b3e526ff831f03e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Wed, 15 May 2024 17:04:40 +0200 Subject: [PATCH] Don't cancel updates on Esc Only close updater window on Esc when intro or summary are visible (where closing the window quickly can be desirable and has no problematic side-effects) fixes QubesOS/qubes-issues#8671 --- qui/updater/updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qui/updater/updater.py b/qui/updater/updater.py index fac1bded..8442e16c 100644 --- a/qui/updater/updater.py +++ b/qui/updater/updater.py @@ -239,7 +239,8 @@ def cancel_updates(self, *_args, **_kwargs): def check_escape(self, _widget, event, _data=None): if event.keyval == Gdk.KEY_Escape: - self.window_close() + if self.intro_page.is_visible or self.summary_page.is_visible: + self.window_close() def window_close(self, *_args, **_kwargs): self.log.debug("Close window")