Make use of lazy preferences

Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
This commit is contained in:
mr. m 2025-05-13 00:31:17 +02:00 committed by GitHub
parent c8150ccdcc
commit 1be8b20b64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,10 +50,6 @@
});
}
#areTabsOnRightSide() {
return Services.prefs.getBoolPref('zen.tabs.vertical.right-side');
}
get #currentBrowser() {
return this.#glances.get(this.#currentGlanceID)?.browser;
}
@ -128,7 +124,7 @@
showSidebarButtons(animate = false) {
if (this.sidebarButtons.hasAttribute('hidden') && animate) {
if (this.#areTabsOnRightSide()) {
if (gZenVerticalTabsManager._prefsRightSide) {
this.sidebarButtons.setAttribute('right', true);
} else {
this.sidebarButtons.removeAttribute('right');