Skip to content

Commit

Permalink
Improved readability in JabRefFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
btut committed May 12, 2020
1 parent e3ae796 commit 3db3997
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,12 @@ public boolean quit() {
the background tasks may make changes themselves that need saving.
*/
if (stateManager.getAnyTaskRunning().getValue()) {
if (!(dialogService.showBackgroundProgressDialogAndWait(
Optional<ButtonType> shouldClose = dialogService.showBackgroundProgressDialogAndWait(
Localization.lang("Please wait..."),
Localization.lang("Waiting for background tasks to finish. Quit anyway?"),
stateManager
).orElse(ButtonType.CANCEL) == ButtonType.YES)) {
);
if (!(shouldClose.isPresent() && shouldClose.get() == ButtonType.YES)) {
return false;
}
}
Expand Down

0 comments on commit 3db3997

Please sign in to comment.