Fixed #2177 Leftover process when invalid SWF opened - now main window is shown

This commit is contained in:
Jindra Petřík
2024-08-05 11:17:25 +02:00
parent 9d0ddb8c6c
commit 9cad4810d6
3 changed files with 10 additions and 10 deletions
@@ -99,9 +99,7 @@ public class LoadingDialog extends AppDialog {
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
if (Main.shouldCloseWhenClosingLoadingDialog) {
System.exit(0);
} else if (worker != null) {
if (worker != null) {
worker.cancel(true);
}
}