Skip to content

Commit

Permalink
Duplicate check on import should be run in background Task JabRef#4963
Browse files Browse the repository at this point in the history
  • Loading branch information
dpolishc committed May 21, 2019
1 parent c27f6e6 commit bb5b2a9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/main/java/org/jabref/gui/importer/ImportEntriesViewModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,24 @@ public void importEntries(List<BibEntry> entriesToImport) {

if (!continueImport) {
dialogService.notify(Localization.lang("Import canceled"));
} else {
ImportHandler importHandler = new ImportHandler(
dialogService,
database,
ExternalFileTypes.getInstance(),
preferences.getFilePreferences(),
preferences.getImportFormatPreferences(),
preferences.getUpdateFieldPreferences(),
fileUpdateMonitor,
undoManager,
stateManager);
importHandler.importEntries(entriesToImport);
dialogService.notify(Localization.lang("Number of entries successfully imported") + ": " + entriesToImport.size());
}
}
}).executeWith(Globals.TASK_EXECUTOR);
}

ImportHandler importHandler = new ImportHandler(
dialogService,
database,
ExternalFileTypes.getInstance(),
preferences.getFilePreferences(),
preferences.getImportFormatPreferences(),
preferences.getUpdateFieldPreferences(),
fileUpdateMonitor,
undoManager,
stateManager);
importHandler.importEntries(entriesToImport);

dialogService.notify(Localization.lang("Number of entries successfully imported") + ": " + entriesToImport.size());
}

/**
Expand Down

0 comments on commit bb5b2a9

Please sign in to comment.