Wed, 14 Feb 2018 15:23:39 +0000
Disable Notification Centre notifications.
They don't work reliably for some reason, and are in any case annoying
unless the display is somehow fine-tuned.
borgend/ui.py | file | annotate | diff | comparison | revisions |
--- a/borgend/ui.py Wed Feb 07 20:39:01 2018 +0000 +++ b/borgend/ui.py Wed Feb 14 15:23:39 2018 +0000 @@ -301,17 +301,17 @@ self.refresh_timer_time=None self.refresh_timer.start() - if errorlog: - if 'msgid' not in errorlog or not isinstance(errorlog['msgid'], str): - msgid='UnknownError' - else: - msgid=errorlog['msgid'] + # if errorlog: + # if 'msgid' not in errorlog or not isinstance(errorlog['msgid'], str): + # msgid='UnknownError' + # else: + # msgid=errorlog['msgid'] - logger.debug("Opening notification for error %s '%s'", - msgid, errorlog['message']) + # logger.debug("Opening notification for error %s '%s'", + # msgid, errorlog['message']) - notification_workaround(branding.appname_stylised, - msgid, errorlog['message']) + # notification_workaround(branding.appname_stylised, + # msgid, errorlog['message']) @protect_noreturn def pause_resume_all(self):