mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-24 16:12:05 +03:00
Optimize code ,add IsGroupType extension. Adjust EConfigType
This commit is contained in:
@@ -350,7 +350,7 @@ public class MainWindowViewModel : MyReactiveObject
|
||||
{
|
||||
ret = await _updateView?.Invoke(EViewAction.AddServer2Window, item);
|
||||
}
|
||||
else if (eConfigType is EConfigType.PolicyGroup or EConfigType.ProxyChain)
|
||||
else if (eConfigType.IsGroupType())
|
||||
{
|
||||
ret = await _updateView?.Invoke(EViewAction.AddGroupServerWindow, item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user