Skip to content

Commit

Permalink
Fix #270
Browse files Browse the repository at this point in the history
  • Loading branch information
Equbuxu committed Dec 12, 2021
1 parent aa5b107 commit c5d0b1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PixiEditor/ViewModels/SubViewModels/Main/DocumentViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public void RequestCloseDocument(Document document)
if (result == ConfirmationType.Yes)
{
Owner.FileSubViewModel.SaveDocument(false);
if (!document.ChangesSaved)
return;
}
else if (result == ConfirmationType.Canceled)
{
Expand Down

0 comments on commit c5d0b1c

Please sign in to comment.