Fix disconnect button for desktop WG (#345)
* Fix disconnect button for desktop WG
This commit is contained in:
parent
af23d9fd14
commit
52400252dd
2 changed files with 2 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue