Skip to content

Commit

Permalink
Swap game location: Fix weird comboBox select game glitch on first boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Sora-yx committed Mar 28, 2024
1 parent 3eb0604 commit 5763168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SA-Mod-Manager/UI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,9 +1054,12 @@ private async Task ResultPickGame(string path)
GamesInstall.AddMissingGamesList(game);
}

ComboGameSelection.ItemsSource = null;

tempPath = path;
UIHelper.ToggleButton(ref btnOpenGameDir, true);
suppressEvent = true;
ComboGameSelection.ItemsSource = App.GamesList;
ComboGameSelection.SelectedItem = game;
if (DoGameSwap(path))
{
Expand All @@ -1068,6 +1071,7 @@ private async Task ResultPickGame(string path)
UIHelper.ToggleImgButton(ref btnProfileSettings, true);
UIHelper.ToggleImgButton(ref btnBrowseGameDir, true);
suppressEvent = false;
Refresh();
}
}

Expand Down

0 comments on commit 5763168

Please sign in to comment.