Reopen targeted collection on window open if closed at save time (macOS)
This commit is contained in:
parent
5a08d22dbf
commit
37e850c67b
|
@ -134,15 +134,18 @@ Zotero.Server.Connector.SaveSession.prototype.update = async function (libraryID
|
||||||
|
|
||||||
// Select new destination in collections pane
|
// Select new destination in collections pane
|
||||||
var win = Zotero.getActiveZoteroPane();
|
var win = Zotero.getActiveZoteroPane();
|
||||||
|
if (collectionID) {
|
||||||
|
var targetID = "C" + collectionID;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var targetID = "L" + libraryID;
|
||||||
|
}
|
||||||
if (win && win.collectionsView) {
|
if (win && win.collectionsView) {
|
||||||
if (collectionID) {
|
|
||||||
var targetID = "C" + collectionID;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
var targetID = "L" + libraryID;
|
|
||||||
}
|
|
||||||
await win.collectionsView.selectByID(targetID);
|
await win.collectionsView.selectByID(targetID);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
Zotero.Prefs.set('lastViewedFolder', targetID);
|
||||||
|
}
|
||||||
|
|
||||||
await this._updateObjects(this._objects);
|
await this._updateObjects(this._objects);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user