Assign ItemPane#_itemDetails default tabType (#4261)

Fix pinnedPane set to ItemDetails before tabType is assigned not stored to pref
fix: #4260
This commit is contained in:
windingwind 2024-06-19 14:26:08 +08:00 committed by GitHub
parent 310e741a01
commit 24b5f2efb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -109,11 +109,11 @@
} }
get tabType() { get tabType() {
return this._tabType; return this.getAttribute('tabType');
} }
set tabType(tabType) { set tabType(tabType) {
this._tabType = tabType; this.setAttribute('tabType', tabType);
} }
get collectionTreeRow() { get collectionTreeRow() {

View file

@ -30,7 +30,7 @@
<deck id="zotero-item-pane-content" class="zotero-item-pane-content" selectedIndex="0" flex="1"> <deck id="zotero-item-pane-content" class="zotero-item-pane-content" selectedIndex="0" flex="1">
<item-message-pane id="zotero-item-message" /> <item-message-pane id="zotero-item-message" />
<item-details id="zotero-item-details" /> <item-details id="zotero-item-details" tabType="library"/>
<note-editor id="zotero-note-editor" flex="1" notitle="1" <note-editor id="zotero-note-editor" flex="1" notitle="1"
previousfocus="zotero-items-tree" /> previousfocus="zotero-items-tree" />