Browse Source

changes to ConfirmationDialog aren't needed

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

+ 3 - 6
PixiEditor/Models/Dialogs/ConfirmationDialog.cs

@@ -1,9 +1,6 @@
 using PixiEditor.Models.Enums;
 using PixiEditor.Models.Enums;
 using PixiEditor.Views;
 using PixiEditor.Views;
-using System;
-using System.IO;
-using System.Windows;
-
+
 namespace PixiEditor.Models.Dialogs
 namespace PixiEditor.Models.Dialogs
 {
 {
     public static class ConfirmationDialog
     public static class ConfirmationDialog
@@ -15,12 +12,12 @@ namespace PixiEditor.Models.Dialogs
                 Body = message,
                 Body = message,
                 Topmost = true
                 Topmost = true
             };
             };
-            if (popup.ShowDialog().GetValueOrDefault())
+            if ((bool)popup.ShowDialog())
             {
             {
                 return popup.Result ? ConfirmationType.Yes : ConfirmationType.No;
                 return popup.Result ? ConfirmationType.Yes : ConfirmationType.No;
             }
             }
 
 
             return ConfirmationType.Canceled;
             return ConfirmationType.Canceled;
-        }
+        }
     }
     }
 }
 }