Destroy the preview sprite if we are moving on

This commit is contained in:
Tim Young 2017-09-20 10:30:08 -05:00
parent 7ed9e548a8
commit 08641c7174

View File

@ -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);
if (Answer == DialogResult.Yes) ApplyChanges();
if (Answer == DialogResult.Cancel) return false;
if (PreviewSprite != null) PreviewSprite.Destroy();
}
return true;
}