Skip to content

Commit

Permalink
Merge pull request #176 from Raykazi/prefence-window-event-fix
Browse files Browse the repository at this point in the history
Change to fix PreferencesWindow_Closed from not executing
  • Loading branch information
Slazanger authored Aug 7, 2024
2 parents a3e1712 + 3a8272c commit 3441e44
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 3441e44

Please sign in to comment.