Uncheck the disabled checkbox about animation effects if browser.tabs.animate is disabled
This commit is contained in:
parent
c9a3d28c72
commit
f106546809
@ -62,10 +62,13 @@ function init()
|
|||||||
ensureGroupBookmarkItems();
|
ensureGroupBookmarkItems();
|
||||||
|
|
||||||
var animation = document.getElementById('extensions.treestyletab.animation.enabled-check');
|
var animation = document.getElementById('extensions.treestyletab.animation.enabled-check');
|
||||||
if (prefs.getPref('browser.tabs.animate') === false)
|
if (prefs.getPref('browser.tabs.animate') === false) {
|
||||||
animation.setAttribute('disabled', true);
|
animation.setAttribute('disabled', true);
|
||||||
else
|
animation.removeAttribute('checked');
|
||||||
|
}
|
||||||
|
else {
|
||||||
animation.removeAttribute('disabled');
|
animation.removeAttribute('disabled');
|
||||||
|
}
|
||||||
|
|
||||||
// sizeToContent();
|
// sizeToContent();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user