bug fixes

pull/3756/head
2dust 2023-04-21 14:09:55 +08:00
parent f3804fce40
commit fed7e7764e
2 changed files with 2 additions and 2 deletions

View File

@ -1285,7 +1285,7 @@ namespace v2rayN.Handler
{
return -1;
}
var customProfile = SqliteHelper.Instance.Table<ProfileItem>().Where(t => t.subid == subid && t.configType == EConfigType.Custom).ToList();
var customProfile = SqliteHelper.Instance.Table<ProfileItem>().Where(t => t.subid == subid && t.isSub == isSub && t.configType == EConfigType.Custom).ToList();
if (isSub)
{
SqliteHelper.Instance.Execute($"delete from ProfileItem where isSub = 1 and subid = '{subid}'");

View File

@ -1016,7 +1016,7 @@ namespace v2rayN.ViewModels
public void RemoveServer()
{
if (GetProfileItems(out List<ProfileItem> lstSelecteds, false) < 0)
if (GetProfileItems(out List<ProfileItem> lstSelecteds, true) < 0)
{
return;
}