Skip to content

Commit

Permalink
Reduced timeout on notifications to prevent hangup when quitting program
Browse files Browse the repository at this point in the history
  • Loading branch information
matterhorn103 committed Oct 7, 2023
1 parent 0d41cd5 commit e22eead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mora_the_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,15 +750,15 @@ 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:
plyer.notification.notify(
title="Hola!",
message=notification_text,
app_name="Mora the Explorer",
timeout=120,
timeout=2,
)
except:
pass
Expand Down

0 comments on commit e22eead

Please sign in to comment.