Check if frame changed before exit application
This commit is contained in:
@@ -1090,6 +1090,7 @@ namespace McBitFont {
|
||||
}
|
||||
|
||||
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {
|
||||
CheckModifiedFrame();
|
||||
if (prjModified) {
|
||||
if (MessageBox.Show("The project is modified.\nAre you sure you want to quit?", "Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) {
|
||||
e.Cancel = true;
|
||||
|
Reference in New Issue
Block a user