Preferences: Don't reopen to subpane (#3802)

This commit is contained in:
Abe Jellinek 2024-03-07 03:09:30 -05:00 committed by GitHub
parent 1ca23fedb2
commit ac196a5944
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,6 +159,10 @@ var Zotero_Preferences = {
this.helpContainer.hidden = !pane.helpURL;
document.getElementById('prefs-subpane-back-button').hidden = !pane.parent;
if (!pane.parent) {
Zotero.Prefs.set('lastSelectedPrefPane', paneID);
}
}
else {
for (let navItem of this.navigation.children) {
@ -168,7 +172,6 @@ var Zotero_Preferences = {
this.helpContainer.hidden = true;
document.getElementById('prefs-subpane-back-button').hidden = true;
}
Zotero.Prefs.set('lastSelectedPrefPane', paneID);
},
/**