Undo History Reinitialization on Project Open/Creation
This commit is contained in:
1 parent
898a14962d
commit
7b8105038e
1 file changed
+4
@@ -128,6 +128,8 @@ namespace SpriteMapEditor
|
||||
|
||||
private void newProjectMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
undoHistory = new History();
|
||||
|
||||
CurrentProjectFileLocation = null;
|
||||
CurrentSpriteMapFileLocation = null;
|
||||
CurrentSpriteSheetFileLocation = null;
|
||||
@@ -192,6 +194,8 @@ namespace SpriteMapEditor
|
||||
|
||||
private void LoadProject()
|
||||
{
|
||||
undoHistory = new History();
|
||||
|
||||
SpriteMapProject loadedProject;
|
||||
|
||||
using (XmlReader xmlRead = XmlReader.Create(CurrentProjectFileLocation))
|
||||
|
||||
Reference in new issue
Block a user