Optimized move to group

pull/3611/head
2dust 2023-04-04 10:21:12 +08:00
parent 12f3400894
commit b98da3a5dc
1 changed files with 2 additions and 8 deletions

View File

@ -1287,17 +1287,11 @@ namespace v2rayN.Handler
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;
SqliteHelper.Instance.Update(item);
}
SqliteHelper.Instance.UpdateAll(lstProfile);
return 0;
}