Skip to content

Commit

Permalink
ˢᵐᵃˡˡ ᶜᵒᵈᵉᵠᵃ
Browse files Browse the repository at this point in the history
  • Loading branch information
bagusnl committed Oct 26, 2024
1 parent 087672b commit 0977a8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
7 changes: 2 additions & 5 deletions CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ protected virtual async ValueTask RunPatchTask(DownloadClient downloadClient, Do
#endregion

#region DialogTools
protected async Task SpawnRepairDialog(List<T1> assetIndex, Action actionIfInteractiveCancel)
protected async Task SpawnRepairDialog(List<T1> assetIndex, Action? actionIfInteractiveCancel)
{
ArgumentNullException.ThrowIfNull(assetIndex);
long totalSize = assetIndex.Sum(x => x.GetAssetSize());
Expand Down Expand Up @@ -1205,10 +1205,7 @@ protected async Task SpawnRepairDialog(List<T1> assetIndex, Action actionIfInter

if (result == ContentDialogResult.None)
{
if (actionIfInteractiveCancel != null)
{
actionIfInteractiveCancel();
}
actionIfInteractiveCancel?.Invoke();
throw new OperationCanceledException();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,13 @@ private async Task<bool> RepairRoutine()
ResetStatusAndProgress();

// Set as completed
_status.IsCompleted = true;
_status.IsCanceled = false;
_status.ActivityStatus = Locale.Lang._GameRepairPage.Status7;

if (_status != null)
{
_status.IsCompleted = true;
_status.IsCanceled = false;
_status.ActivityStatus = Locale.Lang._GameRepairPage.Status7;
}

// Update status and progress
UpdateAll();

Expand Down

0 comments on commit 0977a8f

Please sign in to comment.