Skip to content

Commit

Permalink
Reset mod: close previous window properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sora-yx committed Feb 7, 2024
1 parent 722661c commit a0d503d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SA-Mod-Manager/ModsCommon/ModConfig.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a0d503d

Please sign in to comment.