From df5e2e72d2c555278e13bd41065b3487a1f8fbbb Mon Sep 17 00:00:00 2001 From: Christoph Aschwanden Date: Mon, 11 Jan 2016 00:54:49 +0900 Subject: [PATCH] Bugfixes: will (a) prevent an app from closing in direct-mode & (b) force close the download window (doesn't go away if there is nothing to download). --- .../java/com/threerings/getdown/launcher/GetdownApp.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/threerings/getdown/launcher/GetdownApp.java b/src/main/java/com/threerings/getdown/launcher/GetdownApp.java index f3e493b..92c7a8a 100644 --- a/src/main/java/com/threerings/getdown/launcher/GetdownApp.java +++ b/src/main/java/com/threerings/getdown/launcher/GetdownApp.java @@ -171,7 +171,14 @@ public class GetdownApp } @Override protected void exit (int exitCode) { - System.exit(exitCode); + if (invokeDirect()) { + // Makes sure the "download" window really does go away (stays if nothing to download) + disposeContainer(); + } + else { + // Calling exit on an directly invoked app would exit the app now! We call only for non-direct! + System.exit(exitCode); + } } protected JFrame _frame; };