From: Alan Knowles Date: Wed, 19 Dec 2018 05:50:39 +0000 (+0800) Subject: RepoStatusPopover.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=ac0672f9d24d7006f75ea49ef952786bbf6e106c RepoStatusPopover.bjs RepoStatusPopover.vala --- diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index 65fbf3f8..77672f7c 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -53,7 +53,7 @@ }, { "listeners" : { - "clicked" : "() => {\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 _this.el.hide();\n Clones.singleton().reposStore.load();\n \n}" + "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}" }, "label" : "Commit Changes", "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-save\", Gtk.IconSize.SMALL_TOOLBAR), null);", diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 85ab04d7..1a226a8d 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -242,6 +242,7 @@ public class RepoStatusPopover : Object //listeners this.el.clicked.connect( () => { + _this.el.hide(); _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" }); _this.repo.push(); _this.repo.loadStatus(); @@ -249,7 +250,7 @@ public class RepoStatusPopover : Object _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff); _this.status_view.el.get_buffer().set_text(_this.repo.git_status); - _this.el.hide(); + Clones.singleton().reposStore.load(); });