Skip to content

Commit

Permalink
Change to fix PreferencesWindow_Closed from not executing
Browse files Browse the repository at this point in the history
  • Loading branch information
Raykazi committed Aug 3, 2024
1 parent a3e1712 commit 3a8272c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SMT/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -905,13 +905,13 @@ private void Preferences_MenuItem_Click(object sender, RoutedEventArgs e)
}

preferencesWindow = new PreferencesWindow();
preferencesWindow.Closed += PreferencesWindow_Closed;
preferencesWindow.Owner = this;
preferencesWindow.DataContext = MapConf;
preferencesWindow.MapConf = MapConf;
preferencesWindow.EM = EVEManager;
preferencesWindow.Init();
preferencesWindow.ShowDialog();
preferencesWindow.Closed += PreferencesWindow_Closed;
}

private void PreferencesWindow_Closed(object sender, EventArgs e)
Expand Down

0 comments on commit 3a8272c

Please sign in to comment.