Forgot to associate closing with warn option
@@ -51,11 +51,15 @@ public class SwingUI {
frame.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
+ if (Recaf.INSTANCE.configs.ui.confirmDeletions) {
int dialogResult = JOptionPane.showConfirmDialog(null, Lang.get("misc.warn.exit"), "Warning",
JOptionPane.YES_NO_OPTION);
if (dialogResult == JOptionPane.YES_OPTION) {
frame.dispose();
}
+ } else {
+ frame.dispose();
+ }
}
});
mnSearch = new JMenu(Lang.get("navbar.search"));
