From c9ed0baf3b0b98d2884337ee2c40d1a4fe0eb0b3 Mon Sep 17 00:00:00 2001 From: MrMirDan <58086007+MrMirDan@users.noreply.github.com> Date: Fri, 15 May 2026 16:01:39 +0300 Subject: [PATCH] fix: app freezes when revoke awg/wg client during active connection (#2211) * block configs revoke during connection * update: check that current config is active * update: notification text --- client/ui/qml/Pages2/PageShare.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/ui/qml/Pages2/PageShare.qml b/client/ui/qml/Pages2/PageShare.qml index 9dab7a5fa..0ea626ef0 100644 --- a/client/ui/qml/Pages2/PageShare.qml +++ b/client/ui/qml/Pages2/PageShare.qml @@ -835,7 +835,15 @@ PageType { var noButtonFunction = function() { } - showQuestionDrawer(headerText, descriptionText, yesButtonText, noButtonText, yesButtonFunction, noButtonFunction) + var isActiveConfigForCurrentClient = ServersModel.isDefaultServerCurrentlyProcessed() + && ServersModel.getDefaultServerData("defaultContainer") === ContainersModel.getProcessedContainerIndex() + + if ((ConnectionController.isConnectionInProgress || ConnectionController.isConnected) + && isActiveConfigForCurrentClient) { + PageController.showNotificationMessage("Unable to revoke current config during active connection") + } else { + showQuestionDrawer(headerText, descriptionText, yesButtonText, noButtonText, yesButtonFunction, noButtonFunction) + } } } }