- Fixed program data not being setup before pre-scan (meaning a first-time user couldn't save pre-scan selections)
This commit is contained in:
pointfeev 2022-03-18 19:08:57 -04:00
parent be6a3966dc
commit 464c82e2f8
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.4.0.0</Version>
<Version>3.4.0.1</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>

View file

@ -404,6 +404,8 @@ internal partial class SelectForm : CustomForm
progressLabel.Text = "Waiting for user to select which programs/games to scan . . .";
ShowProgressBar();
await ProgramData.Setup();
bool scan = forceScan;
if (!scan && (ProgramsToScan is null || !ProgramsToScan.Any() || forceProvideChoices))
{
@ -454,7 +456,6 @@ internal partial class SelectForm : CustomForm
: $"Gathering and caching your applicable games and their DLCs . . . {p}%";
progressBar.Value = p;
};
await ProgramData.Setup();
if (Directory.Exists(SteamLibrary.InstallPath) && ProgramsToScan is not null && ProgramsToScan.Any(c => c.platform == "Steam"))
{
progressLabel.Text = $"Setting up SteamCMD . . . ";