commit 935fb90bedc5a9f40982f70e8d1674e9a07c46d1 parent 68b0fb0368877b819268c478d8471b2b12fd8356 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 18 Mar 2015 16:10:07 -0400 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. Diffstat:
| M | chrome/content/zotero/zoteroPane.js | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git 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]); } }