fix broken save logic

This commit is contained in:
haven1433 2023-08-12 20:12:03 -05:00
parent e0f66efba8
commit f7248e1f8a
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,6 @@ namespace HavenSoft.HexManiac.Core.Models {
}
private IDisposable CaptureNonDataChange() {
var initialState = HasAnyChange;
if (HasAnyChange) return new StubDisposable();
return new StubDisposable { Dispose = () => {
if (!HasAnyChange) return;

View File

@ -160,8 +160,9 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
var hasDataChange = HasDataChange;
if (hasDataChange != hasDataChangeCache) {
hasDataChangeCache = hasDataChange;
NotifyPropertyChanged(nameof(HasDataChange));
NotifyPropertyChanged(nameof(HasDataChange), nameof(IsSaved));
}
if (!hasDataChange && currentChange.HasAnyChange) NotifyPropertyChanged(nameof(IsSaved));
}
private void UndoExecuted() {