From 0530afd669a9e5ad32e833f1c1335fd5d8a12ca0 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:43:14 +0800 Subject: [PATCH] Fix two item panes occasionally appear at same time (#4561) --- chrome/content/zotero/elements/contextPane.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chrome/content/zotero/elements/contextPane.js b/chrome/content/zotero/elements/contextPane.js index 6d979850f5..fb73077f37 100644 --- a/chrome/content/zotero/elements/contextPane.js +++ b/chrome/content/zotero/elements/contextPane.js @@ -181,11 +181,6 @@ _contextPaneSplitter.setAttribute('hidden', false); _contextPane.setAttribute('collapsed', !(_contextPaneSplitter.getAttribute('state') != 'collapsed')); - // It seems that on heavy load (i.e. syncing) the line below doesn't set the correct value, - // therefore we repeat the same operation at the end of JS message queue - setTimeout(() => { - _contextPane.setAttribute('collapsed', !(_contextPaneSplitter.getAttribute('state') != 'collapsed')); - }); this._sidenav.hidden = false; }