mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-17 09:55:00 +03:00
Bug fix
This commit is contained in:
@@ -165,7 +165,7 @@ namespace ServiceLib.ViewModels
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach (var it in SelectedSources)
|
foreach (var it in SelectedSources ?? [SelectedSource])
|
||||||
{
|
{
|
||||||
var item = _rules.FirstOrDefault(t => t.id == it?.id);
|
var item = _rules.FirstOrDefault(t => t.id == it?.id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
@@ -186,7 +186,7 @@ namespace ServiceLib.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
var lst = new List<RulesItem4Ray>();
|
var lst = new List<RulesItem4Ray>();
|
||||||
foreach (var it in SelectedSources)
|
foreach (var it in SelectedSources ?? [SelectedSource])
|
||||||
{
|
{
|
||||||
var item = _rules.FirstOrDefault(t => t.id == it?.id);
|
var item = _rules.FirstOrDefault(t => t.id == it?.id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ namespace ServiceLib.ViewModels
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach (var it in SelectedSources)
|
foreach (var it in SelectedSources ?? [SelectedSource])
|
||||||
{
|
{
|
||||||
var item = LazyConfig.Instance.GetRoutingItem(it?.id);
|
var item = LazyConfig.Instance.GetRoutingItem(it?.id);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ namespace ServiceLib.ViewModels
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var it in SelectedSources)
|
foreach (var it in SelectedSources ?? [SelectedSource])
|
||||||
{
|
{
|
||||||
ConfigHandler.DeleteSubItem(_config, it.id);
|
ConfigHandler.DeleteSubItem(_config, it.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user