mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 879941 - Fix typo in LightweightThemeManager.jsm. r=Unfocused
--HG-- extra : rebase_source : b1c77d825c620887b7b9bcbdb3e32150dd99f200
This commit is contained in:
parent
0f7894bf64
commit
89a0703c4c
@ -67,7 +67,7 @@ this.__defineSetter__("_maxUsedThemes", function maxUsedThemesSetter(aVal) {
|
||||
// events so cached AddonWrapper instances can return correct values for
|
||||
// permissions and pendingOperations
|
||||
var _themeIDBeingEnabled = null;
|
||||
var _themeIDBeingDisbled = null;
|
||||
var _themeIDBeingDisabled = null;
|
||||
|
||||
this.LightweightThemeManager = {
|
||||
get usedThemes () {
|
||||
@ -315,7 +315,7 @@ this.LightweightThemeManager = {
|
||||
if (current) {
|
||||
if (current.id == id)
|
||||
return;
|
||||
_themeIDBeingDisbled = current.id;
|
||||
_themeIDBeingDisabled = current.id;
|
||||
let wrapper = new AddonWrapper(current);
|
||||
if (aPendingRestart) {
|
||||
Services.prefs.setCharPref(PREF_LWTHEME_TO_SELECT, "");
|
||||
@ -326,7 +326,7 @@ this.LightweightThemeManager = {
|
||||
this.themeChanged(null);
|
||||
AddonManagerPrivate.callAddonListeners("onDisabled", wrapper);
|
||||
}
|
||||
_themeIDBeingDisbled = null;
|
||||
_themeIDBeingDisabled = null;
|
||||
}
|
||||
|
||||
if (id) {
|
||||
@ -474,7 +474,7 @@ function AddonWrapper(aTheme) {
|
||||
this.__defineGetter__("userDisabled", function AddonWrapper_userDisabledGetter() {
|
||||
if (_themeIDBeingEnabled == aTheme.id)
|
||||
return false;
|
||||
if (_themeIDBeingDisbled == aTheme.id)
|
||||
if (_themeIDBeingDisabled == aTheme.id)
|
||||
return true;
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user