close notification only when needed

This commit is contained in:
Chris Cromer 2017-10-03 11:07:12 -03:00
parent 0d88b1e660
commit 949d640eb8
1 changed files with 6 additions and 6 deletions

View File

@ -175,7 +175,7 @@ namespace Pamac {
void close_notification () {
try {
if (notification != null) {
if (notification != null && notification.get_closed_reason () == -1) {
notification.close ();
notification = null;
}