Skip to content

Commit 4945a4c

Browse files
committed
small fix to taskbar progress
1 parent a1ba9c6 commit 4945a4c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

FlashpointSecurePlayer/ProgressManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,9 @@ private static int ProgressFormValue {
537537
// if we haven't completed, ignore the value in the marquee style
538538
// (note: we don't check indeterminate state here, in case we are trying to leave that state)
539539
if (ProgressManager.style == ProgressBarStyle.Marquee) {
540-
ProgressFormStyle = ProgressManager.style;
540+
// it's really important that there's no race condition here, so
541+
// we set ProgressFormStyle to Marquee specifically, not the style field
542+
ProgressFormStyle = ProgressBarStyle.Marquee;
541543
return;
542544
}
543545
}

0 commit comments

Comments
 (0)