Skip to content

Commit 76adef5

Browse files
committed
only use marquee in normal state when setting value for taskbar progress
1 parent 226ac9b commit 76adef5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

FlashpointSecurePlayer/ProgressManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,8 @@ private static int ProgressFormValue {
560560
} else {
561561
// if we haven't completed, ignore the value in the marquee style
562562
// (note: we don't check indeterminate state here, in case we are trying to leave that state)
563-
if (ProgressManager.style == ProgressBarStyle.Marquee) {
563+
if (ProgressManager.style == ProgressBarStyle.Marquee
564+
&& ProgressManager.state == PBST_NORMAL) {
564565
// it's really important that there's no race condition here, so
565566
// we set ProgressFormStyle to Marquee specifically, not the style field
566567
ProgressFormStyle = ProgressBarStyle.Marquee;

0 commit comments

Comments
 (0)