Skip to content

Commit

Permalink
Fix taskbar progress does not disappear after game installation
Browse files Browse the repository at this point in the history
again
  • Loading branch information
shatyuka committed Feb 6, 2025
1 parent 33e3347 commit f6b5745
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,11 @@ protected void UpdateSophonFileTotalProgress(long read)
ProgressChanged?.Invoke(this, SophonProgress);

// Update taskbar progress
if (Status.IsProgressAllIndetermined)
if (Status.IsCanceled)
{
WindowUtility.SetTaskBarState(TaskbarState.NoProgress);
}
else if (Status.IsProgressAllIndetermined)
{
WindowUtility.SetTaskBarState(TaskbarState.Indeterminate);
}
Expand Down Expand Up @@ -1410,7 +1414,11 @@ protected virtual void UpdateStatus()
{
StatusChanged?.Invoke(this, Status);

if (Status.IsProgressAllIndetermined)
if (Status.IsCanceled)
{
WindowUtility.SetTaskBarState(TaskbarState.NoProgress);
}
else if (Status.IsProgressAllIndetermined)
{
WindowUtility.SetTaskBarState(TaskbarState.Indeterminate);
}
Expand Down

0 comments on commit f6b5745

Please sign in to comment.