Reopen collapsed collections pane on restart, for now

Same as item pane

Closes #825
This commit is contained in:
Dan Stillman 2019-05-05 23:34:23 -04:00
parent ec0b993a17
commit 787e57f6a2

View file

@ -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]);
}
}