StatusIcon.vala
authorAlan Knowles <alan@roojs.com>
Sat, 23 Sep 2017 05:13:41 +0000 (13:13 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 23 Sep 2017 05:13:41 +0000 (13:13 +0800)
StatusIcon.vala

index 2446dd2..d88ce96 100644 (file)
@@ -288,10 +288,7 @@ public class StatusIconA : StatusIcon {
                         }        
 
                     } 
-                    statusicon.set_tooltip_text("Gitlive");
-                             
-                            
-                    GitMonitor.gitmonitor.start();         
+                           
                            
                 });
             }
@@ -316,23 +313,27 @@ public class StatusIconA : StatusIcon {
                         statusicon.set_tooltip_text("pull: " + repo.name);
                         var str = "";
                         repo.pull_async((out result) {
-                               total--;
-                               str += str.length > 0 ? "\n" : "";
-                               str += res;
-                               if (total < 1) {
-                                       
+                               total--;`
+                               if (!Regex.match_simple ("Already up-to-date", str) ) {
+                                        
+                               
+                                               str += str.length > 0 ? "\n" : "";
+                                               str += "Updated: " +repo.name + "\n" + res +"\n";
+                                       }
+                                       if (total < 1) {
+                                       var notification = new Notify.Notification( 
+                                            "Updated " + repo.name,
+                                            str,
+                                              "dialog-information"
+                                       );
+                               statusicon.set_tooltip_text("Gitlive");
+                             
+                            
+                                               GitMonitor.gitmonitor.start();
                                }
                         });
                                 // do not care if it's already in sycn..
-                        if (Regex.match_simple ("Already up-to-date", str) ) {
-                            continue;
-                        }
-                        var notification = new Notify.Notification( 
-                                 "Updated " + repo.name,
-                                 str,
-                                   "dialog-information"
-                               
-                        );
+                        
                     
                         notification.set_timeout(20);
                         notification.show();