Skip to content

Commit d39b9e7

Browse files
authored
fix: update status bar getting stuck empty after periodic update check (#4776)
Co-authored-by: Chris Nolan.ca <22640+ChrisNolan@users.noreply.github.com>
1 parent 1c1d28d commit d39b9e7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Hearthstone Deck Tracker/Utility/Updating/Updater.Squirrel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ private static bool ShouldCheckForUpdates()
2525

2626
public static async void CheckForUpdates(bool force = false)
2727
{
28+
// An update has already been downloaded and installed, and is just waiting for a
29+
// restart. Checking again would reset the status bar (UpdaterState.Checking/None
30+
// both hide the "click to update" message) while leaving it visible but empty.
31+
if(Status.UpdaterState == UpdaterState.Available)
32+
return;
2833
if(!force && !ShouldCheckForUpdates())
2934
return;
3035
_lastUpdateCheck = DateTime.Now;

0 commit comments

Comments
 (0)