fixes for uninstall all cancellation
This commit is contained in:
parent
a7b8e893b2
commit
252db9c775
1 changed files with 11 additions and 20 deletions
|
@ -645,13 +645,13 @@ internal sealed partial class SelectForm : CustomForm
|
|||
progressBar.Value = p;
|
||||
};
|
||||
progressLabel.Text = "Quickly gathering games for uninstallation . . . ";
|
||||
if (!Program.Canceled)
|
||||
TreeNodes.ForEach(node => node.Remove());
|
||||
await GetApplicablePrograms(iProgress, true);
|
||||
if (!Program.Canceled)
|
||||
OnUninstall(null, null);
|
||||
ProgramSelection.All.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
scan = selectResult == DialogResult.OK && choices is not null && choices.Any();
|
||||
const string retry = "\n\nPress the \"Rescan\" button to re-choose.";
|
||||
if (scan)
|
||||
|
@ -662,7 +662,6 @@ internal sealed partial class SelectForm : CustomForm
|
|||
else
|
||||
noneFoundLabel.Text = "You didn't choose any programs nor games!" + retry;
|
||||
}
|
||||
}
|
||||
else
|
||||
noneFoundLabel.Text = "No applicable programs nor games were found on your computer!";
|
||||
}
|
||||
|
@ -697,15 +696,7 @@ internal sealed partial class SelectForm : CustomForm
|
|||
setup = false;
|
||||
progressLabel.Text = "Gathering and caching your applicable games and their DLCs . . . ";
|
||||
ProgramSelection.ValidateAll(programsToScan);
|
||||
/*TreeNodes.ForEach(node =>
|
||||
{
|
||||
if (node.Tag is not Platform platform
|
||||
|| node.Name is not string platformId
|
||||
|| ProgramSelection.FromPlatformId(platform, platformId) is null
|
||||
&& ProgramSelection.GetDlcFromPlatformId(platform, platformId) is null)
|
||||
node.Remove();
|
||||
});*/
|
||||
TreeNodes.ForEach(node => node.Remove()); // nodes cause lots of lag during rescan for now
|
||||
TreeNodes.ForEach(node => node.Remove());
|
||||
await GetApplicablePrograms(iProgress);
|
||||
await SteamCMD.Cleanup();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue