[gnome-builder] core: ignore notify::completed if FALSE



commit b0a8e5c7b550c821518321e4241fe34488eb7912
Author: Christian Hergert <chergert redhat com>
Date:   Fri Aug 30 16:37:52 2019 -0700

    core: ignore notify::completed if FALSE
    
    Fixes #927

 src/libide/core/ide-transfer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/core/ide-transfer.c b/src/libide/core/ide-transfer.c
index ef930c492..c054be9cd 100644
--- a/src/libide/core/ide-transfer.c
+++ b/src/libide/core/ide-transfer.c
@@ -502,7 +502,8 @@ ide_transfer_notification_notify_completed (IdeTransfer     *self,
   g_assert (IDE_IS_TRANSFER (self));
   g_assert (IDE_IS_NOTIFICATION (notif));
 
-  ide_notification_withdraw_in_seconds (notif, 10);
+  if (ide_transfer_get_completed (self))
+    ide_notification_withdraw_in_seconds (notif, -1);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]