mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-13 11:48:07 +00:00
Refactoring sorting and delayed storage
This commit is contained in:
parent
d44f311ba1
commit
0f8d86f081
1 changed files with 6 additions and 2 deletions
|
@ -32,7 +32,7 @@ namespace v2rayN.Handler
|
|||
sort = 0
|
||||
};
|
||||
_lstProfileEx.Add(profileEx);
|
||||
SqliteHelper.Instance.Replace(profileEx);
|
||||
//SqliteHelper.Instance.Replace(profileEx);
|
||||
}
|
||||
|
||||
public void ClearAll()
|
||||
|
@ -45,7 +45,11 @@ namespace v2rayN.Handler
|
|||
{
|
||||
try
|
||||
{
|
||||
SqliteHelper.Instance.UpdateAll(_lstProfileEx);
|
||||
foreach (var item in _lstProfileEx)
|
||||
{
|
||||
SqliteHelper.Instance.Replace(item);
|
||||
}
|
||||
//SqliteHelper.Instance.UpdateAll(_lstProfileEx);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue