From a2db6dd468028c3c0d2c0ebbbeb88803611bb22a Mon Sep 17 00:00:00 2001 From: fonaix Date: Thu, 21 Nov 2024 09:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9ATrayIcon=E4=B8=8D?= =?UTF-8?q?=E8=B7=9F=E9=9A=8F=E4=BB=A3=E7=90=86=E6=A8=A1=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98=20(#6126)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加:MacOS 代理配置与清除 * 修复:点击表头排序时,超时服务器排在前面的问题 * 添加:MacOS 打开存储所在位置功能 * 修复:删除全部节点时,UI不更新的问题 * 修复:TrayIcon不跟随代理模式变化的问题 --- v2rayN/v2rayN.Desktop/Views/StatusBarView.axaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2rayN/v2rayN.Desktop/Views/StatusBarView.axaml.cs b/v2rayN/v2rayN.Desktop/Views/StatusBarView.axaml.cs index 63587ef9..f97e0e85 100644 --- a/v2rayN/v2rayN.Desktop/Views/StatusBarView.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/StatusBarView.axaml.cs @@ -1,4 +1,5 @@ using Avalonia; +using Avalonia.Controls; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.ReactiveUI; using Avalonia.Threading; @@ -77,6 +78,9 @@ namespace v2rayN.Desktop.Views if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) { desktop.MainWindow.Icon = AvaUtils.GetAppIcon(_config.SystemProxyItem.SysProxyType); + var iconslist = TrayIcon.GetIcons(Application.Current); + iconslist[0].Icon = desktop.MainWindow.Icon; + TrayIcon.SetIcons(Application.Current, iconslist); } }