fix: fixed connection issue 2

This commit is contained in:
Qv2ray-dev 2020-05-15 00:46:39 +08:00
parent 7963f03f55
commit 74f40f0775
2 changed files with 2 additions and 12 deletions

View File

@ -1 +1 @@
5403 5404

View File

@ -320,17 +320,7 @@ namespace Qv2ray::core::handlers
auto list = groups[id].connections; auto list = groups[id].connections;
for (const auto &conn : list) for (const auto &conn : list)
{ {
LinkConnectionWithGroup(conn, DefaultGroupId); MoveConnectionFromToGroup(conn, id, DefaultGroupId);
}
//
// TODO
if (groups[id].isSubscription)
{
// QDir(QV2RAY_SUBSCRIPTION_DIR + id.toString()).removeRecursively();
}
else
{
QFile(QV2RAY_CONNECTIONS_DIR + id.toString()).remove();
} }
// //
PluginHost->Send_ConnectionEvent({ Events::ConnectionEntry::FullyRemoved, groups[id].displayName, "" }); PluginHost->Send_ConnectionEvent({ Events::ConnectionEntry::FullyRemoved, groups[id].displayName, "" });