Preserve current state before big refactor

This commit is contained in:
2025-02-05 20:45:49 -08:00
parent 4910ff7770
commit badc6d2375
65 changed files with 2356 additions and 113 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Threading.Tasks;
using Godot;
namespace Laura.DeployToSteamOS;
public partial class DeployWindow
{
private async Task DeployUpload(Callable logCallable)
{
CurrentStep = DeployStep.Uploading;
CurrentProgress = StepProgress.Running;
UpdateUI();
try
{
await SteamOSDevkitManager.CopyFiles(
_device,
_localPath,
_prepareUploadResult.Directory,
logCallable
);
}
catch (Exception e)
{
AddToConsole(DeployStep.Uploading, e.Message);
UpdateUIToFail();
}
CurrentProgress = StepProgress.Succeeded;
UpdateUI();
}
}