Fix bootstrapper cancelling that I broke earlier

This commit is contained in:
pizzaboxer 2024-10-10 21:06:08 +01:00
parent 173f1921a6
commit 71d41b40a8
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -70,10 +70,6 @@ namespace Bloxstrap
{ {
_launchMode = launchMode; _launchMode = launchMode;
// this is now always enabled as of v2.8.0
if (Dialog is not null)
Dialog.CancelEnabled = true;
// https://github.com/icsharpcode/SharpZipLib/blob/master/src/ICSharpCode.SharpZipLib/Zip/FastZip.cs/#L669-L680 // https://github.com/icsharpcode/SharpZipLib/blob/master/src/ICSharpCode.SharpZipLib/Zip/FastZip.cs/#L669-L680
// exceptions don't get thrown if we define events without actually binding to the failure events. probably a bug. ¯\_(ツ)_/¯ // exceptions don't get thrown if we define events without actually binding to the failure events. probably a bug. ¯\_(ツ)_/¯
_fastZipEvents.FileFailure += (_, e) => throw e.Exception; _fastZipEvents.FileFailure += (_, e) => throw e.Exception;
@ -149,6 +145,10 @@ namespace Bloxstrap
App.Logger.WriteLine(LOG_IDENT, "Running bootstrapper"); App.Logger.WriteLine(LOG_IDENT, "Running bootstrapper");
// this is now always enabled as of v2.8.0
if (Dialog is not null)
Dialog.CancelEnabled = true;
SetStatus(Strings.Bootstrapper_Status_Connecting); SetStatus(Strings.Bootstrapper_Status_Connecting);
var connectionResult = await RobloxDeployment.InitializeConnectivity(); var connectionResult = await RobloxDeployment.InitializeConnectivity();