From 787e57f6a29b73ee9fac2b4a4d7da7b78bbe1fe8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 5 May 2019 23:34:23 -0400 Subject: [PATCH] Reopen collapsed collections pane on restart, for now Same as item pane Closes #825 --- chrome/content/zotero/zoteroPane.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 7606a48bce..f5a7522e42 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4770,14 +4770,9 @@ var ZoteroPane = new function() if(!el) return; var elValues = serializedValues[id]; for(var attr in elValues) { - // TEMP: For now, ignore persisted collapsed state for item pane splitter - if (el.id == 'zotero-items-splitter' && attr == 'state') continue; - // And don't restore to min-width if splitter was collapsed - if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250 - && 'zotero-items-splitter' in serializedValues - && serializedValues['zotero-items-splitter'].state == 'collapsed') { - continue; - } + // TEMP: For now, ignore persisted collapsed state for collection and item pane splitters + if ((el.id == 'zotero-collections-splitter' || el.id == 'zotero-items-splitter') + && attr == 'state') continue; el.setAttribute(attr, elValues[attr]); } }