diff options
-rw-r--r-- | SpriteEd/NSSpriteEditWindowDelegate.cs | 5 | ||||
-rw-r--r-- | SpriteEd/ViewController.cs | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/SpriteEd/NSSpriteEditWindowDelegate.cs b/SpriteEd/NSSpriteEditWindowDelegate.cs index eb1579b..a3977ec 100644 --- a/SpriteEd/NSSpriteEditWindowDelegate.cs +++ b/SpriteEd/NSSpriteEditWindowDelegate.cs @@ -105,6 +105,11 @@ namespace SpriteEd close = true; } + if (close) + { + Window.DocumentEdited = false; + } + return close; } } diff --git a/SpriteEd/ViewController.cs b/SpriteEd/ViewController.cs index d555dd1..39f868a 100644 --- a/SpriteEd/ViewController.cs +++ b/SpriteEd/ViewController.cs @@ -296,6 +296,11 @@ namespace SpriteEd } } + if (ok) + { + View.Window.DocumentEdited = false; + } + return ok; } @@ -322,6 +327,11 @@ namespace SpriteEd Util.DisplayAlert("Error saving sprite set", e.Message); } + if (ok) + { + View.Window.DocumentEdited = false; + } + return ok; } } |