mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-25 11:39:56 +08:00
fix
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user