From 52400252ddf3c02b43e4d46ec6f1e1c776b9a640 Mon Sep 17 00:00:00 2001 From: Mykola Baibuz Date: Sun, 24 Sep 2023 07:06:52 -0400 Subject: [PATCH] Fix disconnect button for desktop WG (#345) * Fix disconnect button for desktop WG --- client/daemon/daemonlocalserverconnection.cpp | 2 +- client/mozilla/localsocketcontroller.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/daemon/daemonlocalserverconnection.cpp b/client/daemon/daemonlocalserverconnection.cpp index 43c67f16..1a49b7e5 100644 --- a/client/daemon/daemonlocalserverconnection.cpp +++ b/client/daemon/daemonlocalserverconnection.cpp @@ -108,7 +108,7 @@ void DaemonLocalServerConnection::parseCommand(const QByteArray& data) { } if (type == "deactivate") { - Daemon::instance()->deactivate(); + Daemon::instance()->deactivate(true); return; } diff --git a/client/mozilla/localsocketcontroller.cpp b/client/mozilla/localsocketcontroller.cpp index 40bc0bba..00811500 100644 --- a/client/mozilla/localsocketcontroller.cpp +++ b/client/mozilla/localsocketcontroller.cpp @@ -175,6 +175,7 @@ void LocalSocketController::deactivate() { QJsonObject json; json.insert("type", "deactivate"); write(json); + emit disconnected(); } void LocalSocketController::checkStatus() {