From 935fb90bedc5a9f40982f70e8d1674e9a07c46d1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 18 Mar 2015 16:10:07 -0400 Subject: [PATCH] Reopen collapsed item pane on restart, for now Until we find a solution that confuses people less (#678), don't persist the collapsed state across restarts. --- chrome/content/zotero/zoteroPane.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 3f1fd12ed..7ecdf1abd 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4089,6 +4089,13 @@ 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') continue; + // And don't restore to min-width if splitter was collapsed + if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250 + && serializedValues['zotero-items-splitter'].state == 'collapsed') { + continue; + } el.setAttribute(attr, elValues[attr]); } }