修复头像退出刷新问题

端口占用提示占用的进程
升级nuget包
This commit is contained in:
rmbgame
2021-05-08 21:28:36 +08:00
parent 4f6fb0ebc6
commit da413be342
5 changed files with 13 additions and 9 deletions
@@ -44,17 +44,17 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.999-cibuild0013977-beta" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.999-cibuild0013977-beta" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="0.10.999-cibuild0013977-beta" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.999-cibuild0013977-beta" />
<PackageReference Include="Avalonia" Version="0.10.999-cibuild0013988-beta" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.999-cibuild0013988-beta" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="0.10.999-cibuild0013988-beta" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.999-cibuild0013988-beta" />
<PackageReference Include="Avalonia.Xaml.Behaviors" Version="0.10.0" />
<!--<PackageReference Include="CefNet.Avalonia" Version="88.1.21022.1657" />-->
<PackageReference Include="LibVLCSharp.Avalonia" Version="3.5.0" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug'">
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.999-cibuild0013977-beta" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.999-cibuild0013988-beta" />
</ItemGroup>
<ItemGroup>
@@ -147,9 +147,11 @@ namespace System.Application.Services
if (!ProxySettings.EnableWindowsProxy.Value)
{
if (httpProxyService.PortInUse(443))
var p = DI.Get<IDesktopPlatformService>().GetProcessByPortOccupy(443, true);
if (p != null)
{
Toast.Show(AppResources.CommunityFix_StartProxyFaild443);
Toast.Show(string.Format(AppResources.CommunityFix_StartProxyFaild443, p.ProcessName));
return;
}
}
@@ -102,6 +102,8 @@ namespace System.Application.Services
userManager.OnSignOut += () =>
{
User = null;
CurrentSteamUser = null;
AvaterPath = DefaultAvaterPath;
};
//ShowWindow = ReactiveCommand.Create<CustomWindow>(n => ShowWindowF(n));
+1 -1
View File
@@ -657,7 +657,7 @@ namespace System.Application.UI.Resx {
}
/// <summary>
/// 查找类似 加速服务启动失败,443端口被占用。请检查您的443端口或者尝试使用Windows代理模式。 的本地化字符串。
/// 查找类似 加速服务启动失败,443端口被{0}占用。请检查您的443端口或者尝试使用Windows代理模式。 的本地化字符串。
/// </summary>
public static string CommunityFix_StartProxyFaild443 {
get {
@@ -319,7 +319,7 @@
<value>启动加速服务失败,证书安装失败。</value>
</data>
<data name="CommunityFix_StartProxyFaild443" xml:space="preserve">
<value>加速服务启动失败,443端口被占用。请检查您的443端口或者尝试使用Windows代理模式。</value>
<value>加速服务启动失败,443端口被{0}占用。请检查您的443端口或者尝试使用Windows代理模式。</value>
</data>
<data name="CommunityFix_StartProxySuccess" xml:space="preserve">
<value>加速已启动成功</value>