Don't jump back to library tab when PDF recognition finishes

This commit is contained in:
Martynas Bagdonas 2022-04-08 15:30:30 +07:00
parent b850d16c89
commit 2112aa7271

View file

@ -303,7 +303,7 @@ Zotero.RecognizePDF = new function () {
try {
let win = Zotero.getMainWindow();
if (selectParent && win && win.Zotero_Tabs.selectedID != 'zotero-pane') {
if (selectParent && win && win.Zotero_Tabs.selectedID == 'zotero-pane') {
await win.ZoteroPane.selectItem(parentItem.id);
}
}