Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
omoluabidotcom committed Nov 22, 2024
1 parent f4e0d0b commit 7de6c1f
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public void startImport(File file, Consumer<StreamResource> errorReportConsumer,

FacadeProvider.getI18nFacade().setUserLanguage(currentUser.getLanguage());
}
ImportResultStatus importResult = runImport();
ImportResultStatus importResult = runImport(currentUI);

// Display a window presenting the import result
currentUI.access(() -> {
Expand Down Expand Up @@ -791,9 +791,13 @@ public ImportResultStatus runImport()

if (importedLineCallback != null) {
// Ensure UI update happens in UI thread
ui.access(() -> {
importedLineCallback.accept(lineResult);
ui.push(); // Force update to client
ui
.access(
() -> {
importedLineCallback.accept(
lineResult);
ui
.push(); // Force update to client
});

// Small delay to allow UI to breathe
Expand Down

0 comments on commit 7de6c1f

Please sign in to comment.