From e22eead55cbea17cb2da5cc6760b6d80779adb3a Mon Sep 17 00:00:00 2001 From: matterhorn103 <83813148+matterhorn103@users.noreply.github.com> Date: Sat, 7 Oct 2023 19:01:40 +0200 Subject: [PATCH] Reduced timeout on notifications to prevent hangup when quitting program --- mora_the_explorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mora_the_explorer.py b/mora_the_explorer.py index 41a6a8e..71e7b0b 100644 --- a/mora_the_explorer.py +++ b/mora_the_explorer.py @@ -750,7 +750,7 @@ def notify(self, copied_list): notification_text = "Unknown error occurred." self.notification.setText(notification_text + " Click to dismiss") self.notification.show() - if self.since_button.isChecked() is False: + if self.since_button.isChecked() is False and platform.system() != "Darwin": # Display system notification - doesn't seem to be implemented for macOS currently # Only if a single date is checked, because with the since function the system notifications get annoying try: @@ -758,7 +758,7 @@ def notify(self, copied_list): title="Hola!", message=notification_text, app_name="Mora the Explorer", - timeout=120, + timeout=2, ) except: pass