mirror of https://github.com/2dust/v2rayN
parent
dc3f07ee84
commit
dff12a8a3a
|
@ -196,13 +196,14 @@ namespace v2rayN.ViewModels
|
|||
return;
|
||||
}
|
||||
|
||||
var lst = new List<RulesItem>();
|
||||
var lst = new List<RulesItem4Ray>();
|
||||
foreach (var it in SelectedSources)
|
||||
{
|
||||
var item = _rules.FirstOrDefault(t => t.id == it?.id);
|
||||
if (item != null)
|
||||
{
|
||||
lst.Add(item);
|
||||
var item2 = JsonUtils.Deserialize<RulesItem4Ray>(JsonUtils.Serialize(item));
|
||||
lst.Add(item2 ?? new());
|
||||
}
|
||||
}
|
||||
if (lst.Count > 0)
|
||||
|
|
Loading…
Reference in New Issue