From b28c96ce50369f3413230db472106dfd4b0ec21c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 1 Aug 2018 17:38:13 +0800 Subject: [PATCH] StatusIcon.vala --- StatusIcon.vala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/StatusIcon.vala b/StatusIcon.vala index 74ef1745..45ef1487 100644 --- a/StatusIcon.vala +++ b/StatusIcon.vala @@ -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"); -- 2.39.2