Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Fix update text not changing.
Browse files Browse the repository at this point in the history
  • Loading branch information
steviegt6 committed Nov 28, 2022
1 parent 7839d4d commit af8b4f2
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ void handleAlert(GameAlert alert)
case GameAlert.NoUpdatesFound:
updateButton.UpdateText("No updates found.");
Schedule(() => { playButton.Enabled.Value = true; });
Scheduler.AddDelayed(() => updateButton.Enabled.Value = true, 10 * 1000);
Scheduler.AddDelayed(
() =>
{
updateButton.Enabled.Value = true;
updateButton.UpdateText("Update");
},
5 * 1000
);
break;

case GameAlert.UpdatingGame:
Expand All @@ -134,7 +141,14 @@ void handleAlert(GameAlert alert)
case GameAlert.GameUpdated:
updateButton.UpdateText("Update installed!");
Schedule(() => { playButton.Enabled.Value = true; });
Scheduler.AddDelayed(() => updateButton.Enabled.Value = true, 10 * 1000);
Scheduler.AddDelayed(
() =>
{
updateButton.Enabled.Value = true;
updateButton.UpdateText("Update");
},
5 * 1000
);
break;

case GameAlert.CheckingInstallation:
Expand Down

0 comments on commit af8b4f2

Please sign in to comment.