close notification only when needed

This commit is contained in:
guinux 2017-09-21 12:37:53 +02:00
parent e1ead00c62
commit 669316872f

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;
}