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:
@@ -171,8 +171,15 @@ public class GetdownApp
|
||||
}
|
||||
@Override
|
||||
protected void exit (int 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;
|
||||
};
|
||||
app.start();
|
||||
|
||||
Reference in New Issue
Block a user