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).

This commit is contained in:
Christoph Aschwanden
2016-01-11 00:54:49 +09:00
parent 8fb6920f77
commit df5e2e72d2
@@ -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;
};