RepoStatusPopover.bjs
[gitlive] / RepoStatusPopover.vala
index dbe3bb1..b43c6ee 100644 (file)
@@ -60,6 +60,13 @@ public class RepoStatusPopover : Object
       
        //this.el.set_position(Gtk.PositionType.RIGHT);
     
+       if (repo.activeTicket == null) {
+               _this.btn_merge.el.set_sensitive(false);
+       } else {
+               _this.btn_merge.el.set_sensitive(true);
+       }
+    
+    
        // window + header?
         GLib.debug("SHOWALL - POPIP\n");
        this.el.show_all();