修复:删除全部节点时,UI不更新的问题

This commit is contained in:
fonaix 2024-11-11 09:07:32 +08:00
parent 6ff4ab274d
commit d9a71bbf28

View file

@ -479,7 +479,10 @@ namespace ServiceLib.ViewModels
await ConfigHandler.RemoveServer(_config, lstSelecteds);
NoticeHandler.Instance.Enqueue(ResUI.OperationSuccess);
if (lstSelecteds.Count == _profileItems.Count)
{
_profileItems.Clear();
}
RefreshServers();
if (exists)
{