Skip to content

Commit a19055c

Browse files
committed
airspace issue fixed
1 parent d5427ff commit a19055c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Source/NETworkManager/MainWindow.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,14 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
321321
settings.NegativeButtonText = System.Windows.Application.Current.Resources["String_Button_Cancel"] as string;
322322
settings.DefaultButtonFocus = MessageDialogResult.Affirmative;
323323

324-
if (await this.ShowMessageAsync(System.Windows.Application.Current.Resources["String_Header_Confirm"] as string, System.Windows.Application.Current.Resources["String_ConfirmCloseQuesiton"] as string, MessageDialogStyle.AffirmativeAndNegative, settings) == MessageDialogResult.Affirmative)
324+
// Fix airspace issues
325+
ConfigurationManager.Current.FixAirspace = true;
326+
327+
MessageDialogResult result = await this.ShowMessageAsync(System.Windows.Application.Current.Resources["String_Header_Confirm"] as string, System.Windows.Application.Current.Resources["String_ConfirmCloseQuesiton"] as string, MessageDialogStyle.AffirmativeAndNegative, settings);
328+
329+
ConfigurationManager.Current.FixAirspace = false;
330+
331+
if (result == MessageDialogResult.Affirmative)
325332
{
326333
_closeApplication = true;
327334
Close();

0 commit comments

Comments
 (0)