diff --git a/src/main/java/org/jabref/gui/importer/GenerateEntryFromIdAction.java b/src/main/java/org/jabref/gui/importer/GenerateEntryFromIdAction.java index ad277139ff6..d6e36a5d1eb 100644 --- a/src/main/java/org/jabref/gui/importer/GenerateEntryFromIdAction.java +++ b/src/main/java/org/jabref/gui/importer/GenerateEntryFromIdAction.java @@ -58,7 +58,10 @@ public void execute() { BackgroundTask> backgroundTask = searchAndImportEntryInBackground(); backgroundTask.titleProperty().set(Localization.lang("Import by ID")); backgroundTask.showToUser(true); - backgroundTask.onRunning(() -> dialogService.notify("%s".formatted(backgroundTask.messageProperty().get()))); + backgroundTask.onRunning(() -> { + entryFromIdPopOver.hide(); + dialogService.notify("%s".formatted(backgroundTask.messageProperty().get())); + }); backgroundTask.onFailure(exception -> { String fetcherExceptionMessage = exception.getMessage(); @@ -95,8 +98,6 @@ public void execute() { } else { dialogService.notify("No entry found or import canceled"); } - - entryFromIdPopOver.hide(); }); backgroundTask.executeWith(taskExecutor); }