Browse Source

Changed condition

Krzysztof Krysiński 3 years ago
parent
commit
89a20a6638
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/App.xaml.cs

+ 1 - 1
PixiEditor/App.xaml.cs

@@ -18,7 +18,7 @@ namespace PixiEditor
             if (ViewModelMain.Current.BitmapManager.Documents.Any(x => !x.ChangesSaved))
             if (ViewModelMain.Current.BitmapManager.Documents.Any(x => !x.ChangesSaved))
             {
             {
                 ConfirmationType confirmation = ConfirmationDialog.Show($"{e.ReasonSessionEnding} with unsaved data. Are you sure?", $"{e.ReasonSessionEnding}");
                 ConfirmationType confirmation = ConfirmationDialog.Show($"{e.ReasonSessionEnding} with unsaved data. Are you sure?", $"{e.ReasonSessionEnding}");
-                e.Cancel = (confirmation == ConfirmationType.Canceled || confirmation == ConfirmationType.No);
+                e.Cancel = confirmation != ConfirmationType.Yes
             }
             }
         }
         }
     }
     }