forked from ZenBrowserMirrors/zen-desktop
Make use of lazy preferences
Signed-off-by: mr. m <91018726+mauro-balades@users.noreply.github.com>
This commit is contained in:
parent
c8150ccdcc
commit
1be8b20b64
1 changed files with 1 additions and 5 deletions
|
@ -50,10 +50,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#areTabsOnRightSide() {
|
|
||||||
return Services.prefs.getBoolPref('zen.tabs.vertical.right-side');
|
|
||||||
}
|
|
||||||
|
|
||||||
get #currentBrowser() {
|
get #currentBrowser() {
|
||||||
return this.#glances.get(this.#currentGlanceID)?.browser;
|
return this.#glances.get(this.#currentGlanceID)?.browser;
|
||||||
}
|
}
|
||||||
|
@ -128,7 +124,7 @@
|
||||||
|
|
||||||
showSidebarButtons(animate = false) {
|
showSidebarButtons(animate = false) {
|
||||||
if (this.sidebarButtons.hasAttribute('hidden') && animate) {
|
if (this.sidebarButtons.hasAttribute('hidden') && animate) {
|
||||||
if (this.#areTabsOnRightSide()) {
|
if (gZenVerticalTabsManager._prefsRightSide) {
|
||||||
this.sidebarButtons.setAttribute('right', true);
|
this.sidebarButtons.setAttribute('right', true);
|
||||||
} else {
|
} else {
|
||||||
this.sidebarButtons.removeAttribute('right');
|
this.sidebarButtons.removeAttribute('right');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue