Bug fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run

https://github.com/2dust/v2rayN/issues/7179
This commit is contained in:
2dust 2025-04-24 11:50:24 +08:00
parent 35788158bc
commit 3f19958c75

View file

@ -174,6 +174,11 @@ public class ClashProxiesViewModel : MyReactiveObject
public void RefreshProxyGroups()
{
if (_proxies == null)
{
return;
}
var selectedName = SelectedGroup?.Name;
_proxyGroups.Clear();
@ -229,7 +234,7 @@ public class ClashProxiesViewModel : MyReactiveObject
else
{
SelectedGroup = _proxyGroups.First();
}
}
}
else
{
@ -297,8 +302,10 @@ public class ClashProxiesViewModel : MyReactiveObject
private ProxiesItem? TryGetProxy(string name)
{
if (_proxies is null)
if (_proxies == null)
{
return null;
}
_proxies.TryGetValue(name, out var proxy2);
if (proxy2 != null)
{