summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-07-13 09:30:53 +0000
committerIan C <ianc@noddybox.co.uk>2020-07-13 09:30:53 +0000
commitbfd09ebc25412e891c141d020db7b9d68abaed4f (patch)
tree1da181fa71ccb005ed13e5a6181727117973a555
parent40a9e8e70ff908ffd59b643d0d399d74d0eda8b8 (diff)
Small fix to DocumentEdited flag.
-rw-r--r--SpriteEd/NSSpriteEditWindowDelegate.cs5
-rw-r--r--SpriteEd/ViewController.cs10
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;
}
}