Skip to content

Commit 5ded9d4

Browse files
committed
Fixed progress bar wouldn't stop animating
1 parent b2a6504 commit 5ded9d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Assets/PatchKit Patcher/Scripts/UI/ProgressBar.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,25 @@ private void SetBar(float start, float end)
3131

3232
private void SetProgress(UpdateData data)
3333
{
34+
_isIdle = data.State == PatcherState.Connecting;
35+
3436
if (data.State == PatcherState.None)
3537
{
3638
Text.text = "";
37-
_isIdle = false;
3839
SetBar(0, 0);
3940
return;
4041
}
4142

4243
if (data.State == PatcherState.DisplayingError)
4344
{
4445
Text.text = "Error!";
45-
_isIdle = false;
4646
SetBar(0, 0);
4747
return;
4848
}
4949

5050
if (data.State == PatcherState.Connecting)
5151
{
5252
Text.text = "Connecting...";
53-
_isIdle = true;
5453
return;
5554
}
5655

0 commit comments

Comments
 (0)