From a0d503db5571f0f0ca898f0adeced1235b87cff0 Mon Sep 17 00:00:00 2001 From: Sora Date: Wed, 7 Feb 2024 23:45:15 +0100 Subject: [PATCH] Reset mod: close previous window properly --- SA-Mod-Manager/ModsCommon/ModConfig.xaml.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SA-Mod-Manager/ModsCommon/ModConfig.xaml.cs b/SA-Mod-Manager/ModsCommon/ModConfig.xaml.cs index de8d9840..07dec3ce 100644 --- a/SA-Mod-Manager/ModsCommon/ModConfig.xaml.cs +++ b/SA-Mod-Manager/ModsCommon/ModConfig.xaml.cs @@ -85,9 +85,11 @@ private async void ResetButton_Click(object sender, RoutedEventArgs e) await Task.Delay(10); settings.Save(); await Task.Delay(30); - new ModConfig(modName, pathXML, true).ShowDialog(); - this.Close(); - } + + var config = new ModConfig(modName, pathXML, true); + this.Close(); + config.ShowDialog(); + } private void CancelButton_Click(object sender, RoutedEventArgs e) {