Code cleanup
This commit is contained in:
parent
4e9b161af8
commit
adc187f030
2 changed files with 5 additions and 5 deletions
|
@ -154,13 +154,13 @@ namespace CreamInstaller
|
||||||
flowLayoutPanel1.Invoke((MethodInvoker)delegate
|
flowLayoutPanel1.Invoke((MethodInvoker)delegate
|
||||||
{
|
{
|
||||||
if (Program.Canceled) { return; }
|
if (Program.Canceled) { return; }
|
||||||
|
|
||||||
ProgramSelection selection = new();
|
ProgramSelection selection = new();
|
||||||
selection.ProgramName = node.Name;
|
selection.ProgramName = node.Name;
|
||||||
selection.ProgramDirectory = rootDirectory;
|
selection.ProgramDirectory = rootDirectory;
|
||||||
selection.SteamApiDllDirectories = new();
|
selection.SteamApiDllDirectories = new();
|
||||||
selection.SteamApiDllDirectories.AddRange(directories);
|
selection.SteamApiDllDirectories.AddRange(directories);
|
||||||
|
|
||||||
foreach (INode _node in fileNodes)
|
foreach (INode _node in fileNodes)
|
||||||
{
|
{
|
||||||
if (_node.Type == NodeType.File && _node.ParentId == node.Id)
|
if (_node.Type == NodeType.File && _node.ParentId == node.Id)
|
||||||
|
@ -169,7 +169,7 @@ namespace CreamInstaller
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox checkBox = new();
|
CheckBox checkBox = new();
|
||||||
checkBoxes.Add(checkBox);
|
checkBoxes.Add(checkBox);
|
||||||
checkBox.AutoSize = true;
|
checkBox.AutoSize = true;
|
||||||
|
@ -179,7 +179,7 @@ namespace CreamInstaller
|
||||||
checkBox.Enabled = false;
|
checkBox.Enabled = false;
|
||||||
checkBox.TabStop = true;
|
checkBox.TabStop = true;
|
||||||
checkBox.TabIndex = 1 + checkBoxes.Count;
|
checkBox.TabIndex = 1 + checkBoxes.Count;
|
||||||
|
|
||||||
checkBox.CheckedChanged += (sender, e) =>
|
checkBox.CheckedChanged += (sender, e) =>
|
||||||
{
|
{
|
||||||
selection.Toggle(checkBox.Checked);
|
selection.Toggle(checkBox.Checked);
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
|
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
|
||||||
<DefaultLanguage>en-US</DefaultLanguage>
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
|
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
|
||||||
<EntryPointProjectUniqueName>..\CreamInstaller\CreamInstaller.csproj</EntryPointProjectUniqueName>
|
|
||||||
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
|
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
|
||||||
<PackageCertificateKeyFile>CreamInstallerPackagingProject_TemporaryKey.pfx</PackageCertificateKeyFile>
|
<PackageCertificateKeyFile>CreamInstallerPackagingProject_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||||
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
|
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
|
||||||
|
@ -64,6 +63,7 @@
|
||||||
<GenerateTestArtifacts>True</GenerateTestArtifacts>
|
<GenerateTestArtifacts>True</GenerateTestArtifacts>
|
||||||
<AppxBundlePlatforms>neutral</AppxBundlePlatforms>
|
<AppxBundlePlatforms>neutral</AppxBundlePlatforms>
|
||||||
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
|
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
|
||||||
|
<EntryPointProjectUniqueName>..\CreamInstaller\CreamInstaller.csproj</EntryPointProjectUniqueName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
<AppxBundle>Always</AppxBundle>
|
<AppxBundle>Always</AppxBundle>
|
||||||
|
|
Loading…
Reference in a new issue