Destroy the preview sprite if we are moving on
This commit is contained in:
parent
7ed9e548a8
commit
08641c7174
@ -475,6 +475,7 @@ namespace SpriteLibrary
|
|||||||
DialogResult Answer = MessageBox.Show("You have unsaved Changes. Would you like to save them before proceeding?","Save?",MessageBoxButtons.YesNoCancel);
|
DialogResult Answer = MessageBox.Show("You have unsaved Changes. Would you like to save them before proceeding?","Save?",MessageBoxButtons.YesNoCancel);
|
||||||
if (Answer == DialogResult.Yes) ApplyChanges();
|
if (Answer == DialogResult.Yes) ApplyChanges();
|
||||||
if (Answer == DialogResult.Cancel) return false;
|
if (Answer == DialogResult.Cancel) return false;
|
||||||
|
if (PreviewSprite != null) PreviewSprite.Destroy();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user