mirror of
https://github.com/FroggMaster/CreamInstaller.git
synced 2026-06-12 19:11:25 -07:00
SteamCMD exception visual fixes
This commit is contained in:
@@ -605,6 +605,7 @@ internal sealed partial class SelectForm : CustomForm
|
||||
progressLabel.Text = "Setting up SteamCMD . . . ";
|
||||
if (!await SteamCMD.Setup(iProgress))
|
||||
{
|
||||
HideProgressBar();
|
||||
OnLoad(forceScan, true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ internal static class SteamCMD
|
||||
await Cleanup();
|
||||
if (!FilePath.FileExists())
|
||||
{
|
||||
retryDownload:
|
||||
HttpClient httpClient = HttpClientManager.HttpClient;
|
||||
if (httpClient is null)
|
||||
return false;
|
||||
@@ -136,9 +137,9 @@ internal static class SteamCMD
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
using DialogForm dialogForm = new(Form.ActiveForm);
|
||||
if (dialogForm.Show(SystemIcons.Warning, "Failed to download SteamCMD:\n " + e.FormatException(), "Retry", "OK") is not DialogResult.OK)
|
||||
return false;
|
||||
if (e.HandleException(caption: Program.Name + " failed to download SteamCMD"))
|
||||
goto retryDownload;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (DllPath.FileExists())
|
||||
|
||||
Reference in New Issue
Block a user