From ae4c9513de3b182c34aa418a4befc5de7b3d1c33 Mon Sep 17 00:00:00 2001 From: Attacktive Date: Mon, 25 Apr 2022 12:03:41 +0900 Subject: [PATCH] Change behavior of closing dialog with hitting X https://github.com/RipMeApp/ripme/issues/1975 --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 48e8d8365..5c507214a 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -817,7 +817,7 @@ private void update() { checkChoise.add(noButton); JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame("Are you sure?"); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); frame.add(checkChoise); frame.setSize(405, 70); frame.setVisible(true);