StatusIcon.vala
authorAlan Knowles <alan@roojs.com>
Wed, 1 Aug 2018 09:38:13 +0000 (17:38 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 1 Aug 2018 09:38:13 +0000 (17:38 +0800)
StatusIcon.vala

index 74ef174..45ef148 100644 (file)
@@ -303,7 +303,7 @@ public class StatusIconA : StatusIcon {
                 
                this.total = tr.length;
                 this.has_error = 0;
-                
+                this.pull_all_error_message = "";
                 for (var i= 0; i< tr.length;i++) {
                     statusicon.set_from_stock( 
                                i%2 == 0 ?  Gtk.Stock.FULLSCREEN : Gtk.Stock.LEAVE_FULLSCREEN );
@@ -326,14 +326,15 @@ public class StatusIconA : StatusIcon {
         
                }
                uint total = 0; 
-                       unit has_error = 0;
+                       uint has_error = 0;
+                       string pull_all_error_message = "";
                
                void pullAllCallback(GitRepo repo, int err, string res)
                {
                        this.total--;
                        
                        if (err > 0) {
-                       
+                               this.has_error = 1;
                        
                        }
                        
@@ -350,6 +351,8 @@ public class StatusIconA : StatusIcon {
  
                        }
                        if (this.total < 1) {
+                               if (this.has_error) {
+                                       GitMonitor.gitmonitor.pauseError(
                        
                                statusicon.set_tooltip_text("Gitlive");