RepoStatusPopover.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 05:55:49 +0000 (13:55 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 05:55:49 +0000 (13:55 +0800)
RepoStatusPopover.vala

RepoStatusPopover.bjs
RepoStatusPopover.vala

index 77672f7..08c53b5 100644 (file)
@@ -53,7 +53,7 @@
           },
           {
            "listeners" : {
-            "clicked" : "() => {\n   _this.el.hide();\n   _this.repo.git({ \"commit\" , \"-a\" ,\"-m\", \"Uncommited changes synced\" });\n   _this.repo.push();\n   _this.repo.loadStatus();\n   \n    _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);\n    _this.status_view.el.get_buffer().set_text(_this.repo.git_status);\n    \n\n   Clones.singleton().reposStore.load();\n    \n}"
+            "clicked" : "() => {\n   _this.el.hide();\n    GitMonitor.gitmonitor.stop();\n   _this.repo.git({ \"commit\" , \"-a\" ,\"-m\", \"Uncommited changes synced\" });\n   _this.repo.push();\n   _this.repo.loadStatus();\n   \n    _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);\n    _this.status_view.el.get_buffer().set_text(_this.repo.git_status);\n    \n\n   Clones.singleton().reposStore.load();\n    GitMonitor.gitmonitor.start();\n    \n}"
            },
            "label" : "Commit Changes",
            "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-save\", Gtk.IconSize.SMALL_TOOLBAR), null);",
index 1a226a8..d48f618 100644 (file)
@@ -243,6 +243,7 @@ public class RepoStatusPopover : Object
             //listeners
             this.el.clicked.connect( () => {
                _this.el.hide();
+                GitMonitor.gitmonitor.stop();
                _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" });
                _this.repo.push();
                _this.repo.loadStatus();
@@ -252,6 +253,7 @@ public class RepoStatusPopover : Object
                 
             
                Clones.singleton().reposStore.load();
+                GitMonitor.gitmonitor.start();
                 
             });
         }