SteamCMD exception visual fixes
This commit is contained in:
parent
705178363a
commit
c97976936a
2 changed files with 5 additions and 3 deletions
|
@ -605,6 +605,7 @@ internal sealed partial class SelectForm : CustomForm
|
||||||
progressLabel.Text = "Setting up SteamCMD . . . ";
|
progressLabel.Text = "Setting up SteamCMD . . . ";
|
||||||
if (!await SteamCMD.Setup(iProgress))
|
if (!await SteamCMD.Setup(iProgress))
|
||||||
{
|
{
|
||||||
|
HideProgressBar();
|
||||||
OnLoad(forceScan, true);
|
OnLoad(forceScan, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,7 @@ internal static class SteamCMD
|
||||||
await Cleanup();
|
await Cleanup();
|
||||||
if (!FilePath.FileExists())
|
if (!FilePath.FileExists())
|
||||||
{
|
{
|
||||||
|
retryDownload:
|
||||||
HttpClient httpClient = HttpClientManager.HttpClient;
|
HttpClient httpClient = HttpClientManager.HttpClient;
|
||||||
if (httpClient is null)
|
if (httpClient is null)
|
||||||
return false;
|
return false;
|
||||||
|
@ -136,9 +137,9 @@ internal static class SteamCMD
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
using DialogForm dialogForm = new(Form.ActiveForm);
|
if (e.HandleException(caption: Program.Name + " failed to download SteamCMD"))
|
||||||
if (dialogForm.Show(SystemIcons.Warning, "Failed to download SteamCMD:\n " + e.FormatException(), "Retry", "OK") is not DialogResult.OK)
|
goto retryDownload;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (DllPath.FileExists())
|
if (DllPath.FileExists())
|
||||||
|
|
Loading…
Reference in a new issue