-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asynchronously request latest versions
Instead of waiting for 3 seconds at the start and then requesting the latest versions and then waiting for them to arrive before doing anything, request them right away at the start. Then do the thing after 3 seconds have elapsed. If the versions didn't arrive during the 3-second waiting period, it is treated the same as a network failure. I removed the network connectivity check, since there is now no risk of hanging if the version request takes forever. This fixes the bug where you can click the settings icon during the period after the timer elapsed, but before it started the updater update or automatically opened the game update page. Also, I disabled the settings button after the timer elapses. I think this also fixes a bug where an empty string would be saved in the settings as the current version if you clicked settings before the time elapsed and then updated the game, although I did not try to actually produce this bug.
- Loading branch information
Showing
4 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters