Skip to content

Commit

Permalink
Fix debug window
Browse files Browse the repository at this point in the history
  • Loading branch information
CarbonNeuron committed Jan 20, 2021
1 parent f718326 commit 762a90d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions AUCapture-WPF/UserDataContext.cs
Expand Up @@ -279,11 +279,11 @@ private void SettingsOnPropertyChanged(object sender, PropertyChangedEventArgs e
{
var selection = this.DialogCoordinator.ShowMessageAsync(this, "Restart required",
$"To {(Settings.debug ? "enable" : "disable")} debug mode, we need to restart.",
MessageDialogStyle.AffirmativeAndNegativeAndSingleAuxiliary,
MessageDialogStyle.AffirmativeAndNegative,
new MetroDialogSettings
{
AnimateHide = true, AffirmativeButtonText = "Restart", NegativeButtonText = "Exit",
FirstAuxiliaryButtonText = "Later", DefaultButtonFocus = MessageDialogResult.Affirmative
AnimateHide = true, AffirmativeButtonText = "Restart", NegativeButtonText = "Later",
DefaultButtonFocus = MessageDialogResult.Affirmative,
}).Result;
if (selection == MessageDialogResult.Affirmative)
{
Expand All @@ -294,10 +294,7 @@ private void SettingsOnPropertyChanged(object sender, PropertyChangedEventArgs e
Application.Current.Shutdown(0);
});
}
else if(selection == MessageDialogResult.Negative)
{
Application.Current.Invoke(() => { Application.Current.Shutdown(0); });
}
}));


Expand Down

0 comments on commit 762a90d

Please sign in to comment.