fix not being able to shutdown when download is in progress

This commit is contained in:
yugecin 2017-01-20 00:25:32 +01:00
parent 4bf469d40b
commit 04de1d024f

View File

@ -249,11 +249,13 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
if (DownloadList.get().hasActiveDownloads()) { if (DownloadList.get().hasActiveDownloads()) {
eventBus.post(new BubbleNotificationEvent(DownloadList.EXIT_CONFIRMATION, BubbleNotificationEvent.COMMONCOLOR_PURPLE)); eventBus.post(new BubbleNotificationEvent(DownloadList.EXIT_CONFIRMATION, BubbleNotificationEvent.COMMONCOLOR_PURPLE));
exitRequested = false; exitRequested = false;
exitconfirmation = System.currentTimeMillis();
return false; return false;
} }
if (Updater.get().getStatus() == Updater.Status.UPDATE_DOWNLOADING) { if (Updater.get().getStatus() == Updater.Status.UPDATE_DOWNLOADING) {
eventBus.post(new BubbleNotificationEvent(Updater.EXIT_CONFIRMATION, BubbleNotificationEvent.COMMONCOLOR_PURPLE)); eventBus.post(new BubbleNotificationEvent(Updater.EXIT_CONFIRMATION, BubbleNotificationEvent.COMMONCOLOR_PURPLE));
exitRequested = false; exitRequested = false;
exitconfirmation = System.currentTimeMillis();
return false; return false;
} }
return true; return true;