mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 05:38:51 +00:00
Optimized move to group
This commit is contained in:
parent
12f3400894
commit
b98da3a5dc
1 changed files with 2 additions and 8 deletions
|
@ -1287,17 +1287,11 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
public static int MoveToGroup(Config config, List<ProfileItem> lstProfile, string subid)
|
public static int MoveToGroup(Config config, List<ProfileItem> lstProfile, string subid)
|
||||||
{
|
{
|
||||||
foreach (var it in lstProfile)
|
foreach (var item in lstProfile)
|
||||||
{
|
{
|
||||||
var item = LazyConfig.Instance.GetProfileItem(it.indexId);
|
|
||||||
if (item is null)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
item.subid = subid;
|
item.subid = subid;
|
||||||
SqliteHelper.Instance.Update(item);
|
|
||||||
}
|
}
|
||||||
|
SqliteHelper.Instance.UpdateAll(lstProfile);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue