Fix a bug where error/warning -> indeterminate would not update the progress value correctly

This commit is contained in:
Mike Griese
2021-07-14 09:19:51 -05:00
parent 6d7723e3be
commit d5a14f9a1f

View File

@@ -702,7 +702,12 @@ void IslandWindow::SetTaskbarProgress(const size_t state, const size_t progress)
_taskbar->SetProgressValue(_window.get(), progress, 100);
break;
case 3:
// sets the progress indicator to an indeterminate state
// sets the progress indicator to an indeterminate state.
// FIRST, set the progress to "no progress". That'll clear out any
// progress value from the previous state. Otherwise, a transition
// from (error,x%) or (warning,x%) to indeterminate will leave the
// progress value unchanged, and not show the spinner.
_taskbar->SetProgressState(_window.get(), TBPF_NOPROGRESS);
_taskbar->SetProgressState(_window.get(), TBPF_INDETERMINATE);
break;
case 4: