Warning before closing SOL editor with modified file

This commit is contained in:
Jindra Petřík
2024-11-10 19:49:06 +01:00
parent 35284595be
commit cb02c45dae
2 changed files with 35 additions and 20 deletions

View File

@@ -3107,8 +3107,7 @@ public class Main {
checkLibraryVersion();
View.execInEventDispatch(() -> {
DefaultSyntaxKit.initKit();
SolEditorFrame solEditor = new SolEditorFrame();
solEditor.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
SolEditorFrame solEditor = new SolEditorFrame(true);
solEditor.setVisible(true);
});
} else {
@@ -3583,7 +3582,7 @@ public class Main {
}
public static void openSolEditor() {
SolEditorFrame solEdit = new SolEditorFrame();
SolEditorFrame solEdit = new SolEditorFrame(false);
solEdit.setVisible(true);
}
}