From 8eb70764af19c1245d91de74228e5f05912ad4e3 Mon Sep 17 00:00:00 2001 From: alfrix Date: Wed, 3 Jan 2024 16:59:05 -0300 Subject: [PATCH] increase the timeout of popup warnings this are generally things that the user needs to read and fix the popups can always be re-read in the notification panel --- screen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screen.py b/screen.py index 00ad635a..16b87e29 100755 --- a/screen.py +++ b/screen.py @@ -374,7 +374,8 @@ class KlipperScreen(Gtk.Window): if self.popup_timeout is not None: GLib.source_remove(self.popup_timeout) self.popup_timeout = None - self.popup_timeout = GLib.timeout_add_seconds(10, self.close_popup_message) + timeout = 300 if level == 2 else 10 + self.popup_timeout = GLib.timeout_add_seconds(timeout, self.close_popup_message) return False