Don't focus recognized PDF parent if Zotero Pane tab is not selected

This commit is contained in:
Martynas Bagdonas 2021-10-05 10:31:06 +03:00
parent 78e31cf50f
commit 3c3eac43de

View file

@ -303,10 +303,8 @@ Zotero.RecognizePDF = new function () {
try {
zp = Zotero.getActiveZoteroPane();
if (zp) {
if (selectParent) {
await zp.selectItem(parentItem.id);
}
if (selectParent && zp && zp.Zotero_Tabs.selectedID != 'zotero-pane') {
await zp.selectItem(parentItem.id);
}
}
catch (e) {