1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 01:45:46 +01:00

Don't Be Evil.

--HG--
rename : pentadactyl/skin/icon.png => pentadactyl/icon16.png
This commit is contained in:
Kris Maglione
2011-09-11 15:06:46 -04:00
parent 68d8bf74df
commit 345cce5a42
8 changed files with 41 additions and 28 deletions

View File

@@ -117,8 +117,8 @@ var actions = {
});
},
get filter() {
let ids = XPIProvider.bootstrappedAddons;
return function ({ item }) !item.userDisabled && Set.has(ids, item.id);
return function ({ item }) !item.userDisabled &&
!(item.operationsRequiringRestart & (AddonManager.OP_NEEDS_RESTART_ENABLE | AddonManager.OP_NEEDS_RESTART_DISABLE))
},
perm: "disable"
},
@@ -492,10 +492,8 @@ var Addons = Module("addons", {
}
});
if (!services.has("extensionManager")) {
if (!services.has("extensionManager"))
Components.utils.import("resource://gre/modules/AddonManager.jsm");
var { XPIProvider } = Components.utils.import("resource://gre/modules/XPIProvider.jsm", {});
}
else
var AddonManager = {
PERM_CAN_UNINSTALL: 1,