mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-02 21:12:09 +00:00
parent
dc3f07ee84
commit
dff12a8a3a
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue