mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-11 18:58:20 +00:00
parent
35788158bc
commit
3f19958c75
1 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue