mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Fix disconnect button for desktop WG (#345)
* Fix disconnect button for desktop WG
This commit is contained in:
@@ -108,7 +108,7 @@ void DaemonLocalServerConnection::parseCommand(const QByteArray& data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == "deactivate") {
|
if (type == "deactivate") {
|
||||||
Daemon::instance()->deactivate();
|
Daemon::instance()->deactivate(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ void LocalSocketController::deactivate() {
|
|||||||
QJsonObject json;
|
QJsonObject json;
|
||||||
json.insert("type", "deactivate");
|
json.insert("type", "deactivate");
|
||||||
write(json);
|
write(json);
|
||||||
|
emit disconnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalSocketController::checkStatus() {
|
void LocalSocketController::checkStatus() {
|
||||||
|
|||||||
Reference in New Issue
Block a user