From a0ef957ffec33732cda4657d112bbfbb985fb3e3 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Sun, 6 Sep 2015 17:33:09 +0200 Subject: [PATCH] Fix error when exception in toast --- src/cutecoin/gui/toast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cutecoin/gui/toast.py b/src/cutecoin/gui/toast.py index 8dd5ecc3..505e4a9e 100644 --- a/src/cutecoin/gui/toast.py +++ b/src/cutecoin/gui/toast.py @@ -23,6 +23,7 @@ def display(title, msg): notify2.init("cutecoin") n = notify2.Notification(title, msg) + n.show() except ImportError: _Toast(title, msg) @@ -46,7 +47,6 @@ def display(title, msg): # ) # n.set_hint('icon_data', icon_struct) # n.set_timeout(5000) - n.show() else: _Toast(title, msg) -- GitLab