Index: lib/windowWrapper.js |
=================================================================== |
--- a/lib/windowWrapper.js |
+++ b/lib/windowWrapper.js |
@@ -75,25 +75,22 @@ WindowWrapper.prototype = |
popupShowingHandler: function(event) |
{ |
let popup = event.originalTarget; |
if (!/^(abp-(?:toolbar|status|menuitem)-)popup$/.test(popup.id)) |
return; |
this.popupHiddenHandler(event); |
- let enabled = Aardvark.canSelect(this.browser); |
- let running = (enabled && this.browser == Aardvark.browser); |
+ let running = this.browser == Aardvark.browser; |
let [labelStart, labelStop] = getMenuItem(); |
let item = popup.ownerDocument.createElement("menuitem"); |
item.setAttribute("label", running ? labelStop : labelStart); |
item.setAttribute("class", "elemhidehelper-item"); |
- if (!enabled) |
- item.setAttribute("disabled", "true"); |
if (typeof key == "undefined") |
this.configureKey(event.currentTarget); |
item.setAttribute("acceltext", KeySelector.getTextForKey(key)); |
item.addEventListener("command", this.toggleSelection, false); |
let insertBefore = null; |
@@ -137,11 +134,11 @@ WindowWrapper.prototype = |
Aardvark.hideTooltips(); |
}, |
toggleSelection: function() |
{ |
if ("@adblockplus.org/abp/public;1" in Cc && this.browser != Aardvark.browser) |
Aardvark.start(this); |
else |
- Aardvark.quit(); |
+ Aardvark.doCommand("quit", null); |
} |
}; |