From 789fd2a3d6ef9cb9bd35679d65f539a7daef4a70 Mon Sep 17 00:00:00 2001 From: Gobinath Date: Wed, 26 Oct 2016 07:33:45 +0530 Subject: [PATCH] Fixing bug in closing notification --- safeeyes/debian/changelog | 4 +++- safeeyes/safeeyes/Notification.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/safeeyes/debian/changelog b/safeeyes/debian/changelog index 19bbf1e..91382b6 100644 --- a/safeeyes/debian/changelog +++ b/safeeyes/debian/changelog @@ -1,4 +1,6 @@ -safeeyes (1.0.7-1) xenial; urgency=medium +safeeyes (1.0.8-1) xenial; urgency=medium + + * Fixing bug in Ubuntu MATE environment * Removing apscheduler dependency diff --git a/safeeyes/safeeyes/Notification.py b/safeeyes/safeeyes/Notification.py index 6be6e1b..d8b0b55 100644 --- a/safeeyes/safeeyes/Notification.py +++ b/safeeyes/safeeyes/Notification.py @@ -38,7 +38,10 @@ class Notification: self.notification.show() def close(self): - self.notification.close() + try: + self.notification.close() + except: + pass # GLib.idle_add(lambda: self.notification.close()) def quite(self):