[shotwell/wip/phako/misc-fixes] piwigo: Don't show success pane when not running



commit 510adaac72a1f8b580405f6cf0b6fd90f9f65b9f
Author: Jens Georg <mail jensge org>
Date:   Fri Sep 7 19:10:21 2018 +0200

    piwigo: Don't show success pane when not running
    
    Fixes showing empty dialog pane and lots of criticals on the console

 plugins/shotwell-publishing/PiwigoPublishing.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala 
b/plugins/shotwell-publishing/PiwigoPublishing.vala
index fcd0aeee..649f1358 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -864,6 +864,9 @@ public class PiwigoPublisher : Spit.Publishing.Publisher, GLib.Object {
         
         // TODO: should a message be displayed to the user if num_published is zero?
 
+        if (!is_running())
+            return;
+
         do_show_success_pane();
     }
     


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