Don't focus recognized PDF parent if Zotero Pane tab is not selected
This commit is contained in:
parent
78e31cf50f
commit
3c3eac43de
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue