diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-07-13 09:30:53 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-07-13 09:30:53 +0000 |
commit | bfd09ebc25412e891c141d020db7b9d68abaed4f (patch) | |
tree | 1da181fa71ccb005ed13e5a6181727117973a555 | |
parent | 40a9e8e70ff908ffd59b643d0d399d74d0eda8b8 (diff) |
Small fix to DocumentEdited flag.
-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; } } |