Refactoring sorting and delayed storage

pull/3309/head^2
2dust 2023-02-19 11:23:45 +08:00
parent d44f311ba1
commit 0f8d86f081
1 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace v2rayN.Handler
sort = 0 sort = 0
}; };
_lstProfileEx.Add(profileEx); _lstProfileEx.Add(profileEx);
SqliteHelper.Instance.Replace(profileEx); //SqliteHelper.Instance.Replace(profileEx);
} }
public void ClearAll() public void ClearAll()
@ -45,7 +45,11 @@ namespace v2rayN.Handler
{ {
try try
{ {
SqliteHelper.Instance.UpdateAll(_lstProfileEx); foreach (var item in _lstProfileEx)
{
SqliteHelper.Instance.Replace(item);
}
//SqliteHelper.Instance.UpdateAll(_lstProfileEx);
} }
catch (Exception ex) catch (Exception ex)
{ {