diff --git a/src/ST.Client.Desktop.Avalonia.App.Bridge/ST.Client.Desktop.Avalonia.App.Bridge.csproj b/src/ST.Client.Desktop.Avalonia.App.Bridge/ST.Client.Desktop.Avalonia.App.Bridge.csproj
index b27d5fef4..fbbaa354e 100644
--- a/src/ST.Client.Desktop.Avalonia.App.Bridge/ST.Client.Desktop.Avalonia.App.Bridge.csproj
+++ b/src/ST.Client.Desktop.Avalonia.App.Bridge/ST.Client.Desktop.Avalonia.App.Bridge.csproj
@@ -10,9 +10,9 @@
WINDOWS;WINDOWS_DESKTOP_BRIDGE;$(DefineConstants)
..\ST.Client.Desktop.Avalonia\Application\UI\Assets\Icon.ico
..\ST.Client.Desktop.Avalonia.App\Properties\app.manifest
- win10-x64
+ win-x64
x64
- false
+ true
false
link
diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/About/About_SoftwarePage.axaml b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/About/About_SoftwarePage.axaml
index 8fe3dd480..a451c4964 100644
--- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/About/About_SoftwarePage.axaml
+++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Pages/About/About_SoftwarePage.axaml
@@ -6,7 +6,7 @@
xmlns:vm="clr-namespace:System.Application.UI.ViewModels;assembly=System.Application.SteamTools.Client.Desktop"
xmlns:service="clr-namespace:System.Application.Services;assembly=System.Application.SteamTools.Client.Desktop"
xmlns:resx="clr-namespace:System.Application.UI.Resx;assembly=System.Application.SteamTools.Client.Desktop"
- xmlns:gif="clr-namespace:AvaloniaGif;assembly=AvaloniaGif"
+ xmlns:sys="using:System"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="vm:AboutPageViewModel"
x:CompileBindings="True"
@@ -103,6 +103,13 @@
CommandParameter="{x:Static vm:AboutPageViewModel.ChangeLogLink}"
VerticalAlignment="Center"
VerticalContentAlignment="Center"/>
+
options) : base(toast, client, options)
{
}
@@ -100,7 +98,7 @@ namespace System.Application.Services.Implementation
{
Process.Start(new ProcessStartInfo
{
- FileName = MicrosoftStoreProtocolLink,
+ FileName = UrlConstants.MicrosoftStoreProtocolLink,
UseShellExecute = true,
});
}
diff --git a/src/ST.Client.Desktop/Services/Implementation/SteamServiceImpl.cs b/src/ST.Client.Desktop/Services/Implementation/SteamServiceImpl.cs
index a908f5fdc..14a28a2a4 100644
--- a/src/ST.Client.Desktop/Services/Implementation/SteamServiceImpl.cs
+++ b/src/ST.Client.Desktop/Services/Implementation/SteamServiceImpl.cs
@@ -132,7 +132,7 @@ namespace System.Application.Services.Implementation
{
if (!string.IsNullOrEmpty(SteamProgramPath))
{
- Process2.Start(SteamProgramPath, arguments, true);
+ Process2.Start(SteamProgramPath, arguments);
}
}
diff --git a/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs b/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs
index bd497037f..117abb406 100644
--- a/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs
+++ b/src/ST.Client.Desktop/UI/Resx/AppResources.Designer.cs
@@ -69,6 +69,15 @@ namespace System.Application.UI.Resx {
}
}
+ ///
+ /// 查找类似 打分&评价 的本地化字符串。
+ ///
+ public static string About_AppReview {
+ get {
+ return ResourceManager.GetString("About_AppReview", resourceCulture);
+ }
+ }
+
///
/// 查找类似 联系我们 的本地化字符串。
///
diff --git a/src/ST.Client.Desktop/UI/Resx/AppResources.resx b/src/ST.Client.Desktop/UI/Resx/AppResources.resx
index b7f54ba8d..673ebf534 100644
--- a/src/ST.Client.Desktop/UI/Resx/AppResources.resx
+++ b/src/ST.Client.Desktop/UI/Resx/AppResources.resx
@@ -1598,4 +1598,7 @@
代理仅启用脚本功能
+
+ 打分&评价
+
\ No newline at end of file
diff --git a/src/ST.Client.Desktop/UI/ViewModels/Pages/About/AboutPageViewModel.cs b/src/ST.Client.Desktop/UI/ViewModels/Pages/About/AboutPageViewModel.cs
index cfabc88e8..219c4f7ed 100644
--- a/src/ST.Client.Desktop/UI/ViewModels/Pages/About/AboutPageViewModel.cs
+++ b/src/ST.Client.Desktop/UI/ViewModels/Pages/About/AboutPageViewModel.cs
@@ -29,5 +29,7 @@ namespace System.Application.UI.ViewModels
public static string ChangeLogLink => UrlConstants.OfficialWebsite_Changelog;
public static string LicenseLink => UrlConstants.License_GPLv3;
+
+ public static string MicrosoftStoreReviewLink => UrlConstants.MicrosoftStoreReviewLink;
}
}
\ No newline at end of file
diff --git a/src/ST.Client.Desktop/UI/ViewModels/Pages/LocalAuthPageViewModel.shared.cs b/src/ST.Client.Desktop/UI/ViewModels/Pages/LocalAuthPageViewModel.shared.cs
index 671f87727..2f1a40320 100644
--- a/src/ST.Client.Desktop/UI/ViewModels/Pages/LocalAuthPageViewModel.shared.cs
+++ b/src/ST.Client.Desktop/UI/ViewModels/Pages/LocalAuthPageViewModel.shared.cs
@@ -45,6 +45,9 @@ namespace System.Application.UI.ViewModels
if (result)
{
AuthService.Current.Authenticators.Clear();
+#if !__MOBILE__
+ MenuItems?.Clear();
+#endif
Activation();
}
else
diff --git a/src/ST.Client/UrlConstants.cs b/src/ST.Client/UrlConstants.cs
index 899adc73b..f842ca795 100644
--- a/src/ST.Client/UrlConstants.cs
+++ b/src/ST.Client/UrlConstants.cs
@@ -26,5 +26,10 @@ namespace System.Application
public const string Gitee_Issues = "https://gitee.com/rmbgame/SteamTools/issues";
public const string License_GPLv3 = "https://www.gnu.org/licenses/gpl-3.0.html";
+
+ public const string MicrosoftStoreId = "9MTCFHS560NG";
+ public const string MicrosoftStoreAppWebsite = "https://www.microsoft.com/store/apps/" + MicrosoftStoreId;
+ public const string MicrosoftStoreProtocolLink = "ms-windows-store://pdp/?productid=" + MicrosoftStoreId;
+ public const string MicrosoftStoreReviewLink = "ms-windows-store://review/?ProductId=" + MicrosoftStoreId;
}
}
\ No newline at end of file
diff --git a/src/ST.Services.CloudService.Models/Services.CloudService/Constants.cs b/src/ST.Services.CloudService.Models/Services.CloudService/Constants.cs
index b0bd5048f..465cf4afd 100644
--- a/src/ST.Services.CloudService.Models/Services.CloudService/Constants.cs
+++ b/src/ST.Services.CloudService.Models/Services.CloudService/Constants.cs
@@ -84,32 +84,32 @@ namespace System.Application.Services.CloudService
///
public static async void BrowserOpen(string? url)
{
- if (IsHttpUrl(url))
+ //if (IsHttpUrl(url))
+ //{
+ if (DeviceInfo.Platform == DevicePlatform.Unknown)
{
- if (DeviceInfo.Platform == DevicePlatform.Unknown)
+ try
{
- try
+ Process.Start(new ProcessStartInfo
{
- Process.Start(new ProcessStartInfo
- {
- FileName = url,
- UseShellExecute = true,
- });
- }
- catch (Win32Exception e)
- {
-#if MVVM_VM
- // [Win32Exception: 找不到应用程序] 39次报告
- // 疑似缺失没有默认浏览器设置会导致此异常,可能与杀毒软件有关
- Toast.Show(e.GetAllMessage());
-#endif
- }
+ FileName = url,
+ UseShellExecute = true,
+ });
}
- else
+ catch (Win32Exception e)
{
- await Browser.OpenAsync(url);
+#if MVVM_VM
+ // [Win32Exception: 找不到应用程序] 39次报告
+ // 疑似缺失没有默认浏览器设置会导致此异常,可能与杀毒软件有关
+ Toast.Show(e.GetAllMessage());
+#endif
}
}
+ else
+ {
+ await Browser.OpenAsync(url);
+ }
+ //}
}
}
}
\ No newline at end of file