fix not being able to shutdown when download is in progress
This commit is contained in:
parent
4bf469d40b
commit
04de1d024f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user