diff --git a/src/main/java/com/skcraft/launcher/dialog/FeatureSelectionDialog.java b/src/main/java/com/skcraft/launcher/dialog/FeatureSelectionDialog.java index 93ef873..57b0150 100644 --- a/src/main/java/com/skcraft/launcher/dialog/FeatureSelectionDialog.java +++ b/src/main/java/com/skcraft/launcher/dialog/FeatureSelectionDialog.java @@ -42,8 +42,6 @@ public class FeatureSelectionDialog extends JDialog { setSize(new Dimension(500, 400)); setResizable(false); setLocationRelativeTo(owner); - - setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); } private void initComponents() { diff --git a/src/main/java/com/skcraft/launcher/dialog/ProgressDialog.java b/src/main/java/com/skcraft/launcher/dialog/ProgressDialog.java index 6ddcd4a..4cb0320 100644 --- a/src/main/java/com/skcraft/launcher/dialog/ProgressDialog.java +++ b/src/main/java/com/skcraft/launcher/dialog/ProgressDialog.java @@ -187,10 +187,7 @@ public class ProgressDialog extends JDialog { public static ProgressDialog getLastDialog() { WeakReference ref = lastDialogRef; if (ref != null) { - ProgressDialog dialog = ref.get(); - if (!dialog.isVisible()) { - return dialog; - } + return ref.get(); } return null;