mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[Updating] Add versioning to UpdateState.json (#12744)
- fix "Check for updates" hang if UpdateState.json was deleted while the page is open
This commit is contained in:
@@ -36,14 +36,7 @@ namespace updating
|
||||
|
||||
std::optional<VersionHelper> extract_version_from_release_object(const json::JsonObject& release_object)
|
||||
{
|
||||
try
|
||||
{
|
||||
return VersionHelper{ winrt::to_string(release_object.GetNamedString(L"tag_name")) };
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
return std::nullopt;
|
||||
return VersionHelper::fromString(release_object.GetNamedString(L"tag_name"));
|
||||
}
|
||||
|
||||
std::pair<Uri, std::wstring> extract_installer_asset_download_info(const json::JsonObject& release_object)
|
||||
|
||||
Reference in New Issue
Block a user