From 7f6c5f7211325b6762ebd555ff46698db8dcaac3 Mon Sep 17 00:00:00 2001 From: Vrezh Fedora Date: Sat, 1 Mar 2025 22:23:49 +0100 Subject: [PATCH] revert some changes --- src/browser/base/zen-components/ZenGlanceManager.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/browser/base/zen-components/ZenGlanceManager.mjs b/src/browser/base/zen-components/ZenGlanceManager.mjs index a0c963e92..4b9cdb50b 100644 --- a/src/browser/base/zen-components/ZenGlanceManager.mjs +++ b/src/browser/base/zen-components/ZenGlanceManager.mjs @@ -319,7 +319,10 @@ } // Final close - this.quickCloseGlance({ clearID: false }); + if (!onTabClose || quikcCloseZen) { + this.quickCloseGlance({ clearID: false }); + } + this.overlay.removeAttribute('fade-out'); this.browserWrapper.removeAttribute('animate'); @@ -359,9 +362,6 @@ this._animating = false; this.closingGlance = false; - // Hide the buttons globally whenever we close - this.hideSidebarButtons(); - // If we had another Glance queued, open it if (this.#currentGlanceID) { this.quickOpenGlance(); @@ -399,6 +399,7 @@ quickCloseGlance({ closeCurrentTab = true, closeParentTab = true, justAnimateParent = false, clearID = true } = {}) { const parentHasBrowser = !!this.#currentParentTab.linkedBrowser; + this.hideSidebarButtons(); if (parentHasBrowser) { this.#currentParentTab.linkedBrowser.closest('.browserSidebarContainer').classList.remove('zen-glance-background'); }