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.
This commit is contained in:
parent
68b0fb0368
commit
935fb90bed
1 changed files with 7 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue