mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-22 08:11:25 +00:00
Fix Checking for Updates - running indefinitely (#17084)
This commit is contained in:
parent
34e4e7e5bd
commit
f4f8a1bd69
@ -464,6 +464,9 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
}
|
||||
|
||||
public void RefreshUpdatingState()
|
||||
{
|
||||
object oLock = new object();
|
||||
lock (oLock)
|
||||
{
|
||||
var config = UpdatingSettings.LoadSettings();
|
||||
|
||||
@ -474,7 +477,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
config = UpdatingSettings.LoadSettings();
|
||||
}
|
||||
|
||||
if (config == null || config.ToJsonString() == UpdatingSettingsConfig.ToJsonString())
|
||||
if (config == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -504,3 +507,4 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user