This commit is contained in:
Aigio Liu
2021-09-08 10:47:08 +08:00
parent e024ff9c0d
commit 1d15f408dc
2 changed files with 3 additions and 7 deletions
@@ -92,15 +92,11 @@ namespace System.Application.Services.Implementation
}
}
protected override void OpenInAppStore()
protected override async void OpenInAppStore()
{
if (DesktopBridge.IsRunningAsUwp)
{
Process.Start(new ProcessStartInfo
{
FileName = UrlConstants.MicrosoftStoreProtocolLink,
UseShellExecute = true,
});
await Browser2.OpenAsync(UrlConstants.MicrosoftStoreProtocolLink);
}
else
{
@@ -541,7 +541,7 @@ namespace System.Application.Services.Implementation
/// <summary>
/// 在应用商店中打开
/// </summary>
protected virtual void OpenInAppStore() => BrowserOpen(UrlConstants.OfficialWebsite);
protected virtual async void OpenInAppStore() => await OpenAsync(UrlConstants.OfficialWebsite);
void StartUpdate()
{