- 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> <UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon> <ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.4.0.0</Version> <Version>3.4.0.1</Version>
<PackageIcon>Resources\ini.ico</PackageIcon> <PackageIcon>Resources\ini.ico</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <PackageLicenseFile>LICENSE</PackageLicenseFile>
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright> <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 . . ."; progressLabel.Text = "Waiting for user to select which programs/games to scan . . .";
ShowProgressBar(); ShowProgressBar();
await ProgramData.Setup();
bool scan = forceScan; bool scan = forceScan;
if (!scan && (ProgramsToScan is null || !ProgramsToScan.Any() || forceProvideChoices)) 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}%"; : $"Gathering and caching your applicable games and their DLCs . . . {p}%";
progressBar.Value = p; progressBar.Value = p;
}; };
await ProgramData.Setup();
if (Directory.Exists(SteamLibrary.InstallPath) && ProgramsToScan is not null && ProgramsToScan.Any(c => c.platform == "Steam")) if (Directory.Exists(SteamLibrary.InstallPath) && ProgramsToScan is not null && ProgramsToScan.Any(c => c.platform == "Steam"))
{ {
progressLabel.Text = $"Setting up SteamCMD . . . "; progressLabel.Text = $"Setting up SteamCMD . . . ";