Skip to content

Commit

Permalink
Fixed Refresh bug involving datasource still being binded before the …
Browse files Browse the repository at this point in the history
…clear.
  • Loading branch information
Jesse-Culver committed Apr 18, 2022
1 parent 82a9303 commit f34e1ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion XCOM2ModLauncherNoSteam/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ private void refresh_mods_btn_Click(object sender, EventArgs e)
return;
if (!Directory.Exists(xcom2_install_loc_txtbx.Text + "\\XComGame\\Mods"))
Directory.CreateDirectory(xcom2_install_loc_txtbx.Text + "\\XComGame\\Mods");

xcom2_mods_clb.DataSource = null;
xcom2_mods_clb.Items.Clear();
modTable.Clear();
string[] modlist = Directory.GetFiles(xcom2_install_loc_txtbx.Text, "*.XComMod", SearchOption.AllDirectories);
foreach (var mod in modlist)
{
Expand Down

0 comments on commit f34e1ea

Please sign in to comment.