RepoStatusPopover.bjs
[gitlive] / RepoStatusPopover.vala
index aa771df..22966a6 100644 (file)
@@ -67,7 +67,12 @@ public class RepoStatusPopover : Object
                _this.btn_merge.el.set_sensitive(true);
        }
        _this.btn_create.el.set_sensitive(repo.is_master());
-    
+       
+       _this.btn_stash.el.set_sensitive(repo.has_local_changes);
+       _this.btn_commit.el.set_sensitive(repo.has_local_changes);
+       _this.btn_reset.el.set_sensitive(repo.has_local_changes);
+       _this.btn_pull.el.set_sensitive(repo.ahead_or_behind == "B");   
+       
        // window + header?
         GLib.debug("SHOWALL - POPIP\n");
        this.el.show_all();