Browse Source

revert GetValueOrDefault when capturing the dialog event for when Windows close it by force

pablo 3 years ago
parent
commit
798339dbfe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Models/Dialogs/ConfirmationDialog.cs

+ 1 - 1
PixiEditor/Models/Dialogs/ConfirmationDialog.cs

@@ -12,7 +12,7 @@ namespace PixiEditor.Models.Dialogs
                 Body = message,
                 Topmost = true
             };
-            if ((bool)popup.ShowDialog())
+            if (popup.ShowDialog().GetValueOrDefault())
             {
                 return popup.Result ? ConfirmationType.Yes : ConfirmationType.No;
             }