mirror of https://github.com/2dust/v2rayN
Refactoring sorting and delayed storage
parent
d44f311ba1
commit
0f8d86f081
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue