From 0cf9d3c9bd8be79437d3a1afa647e4928ed9b0bc Mon Sep 17 00:00:00 2001 From: Mykola Baibuz Date: Sat, 1 Mar 2025 20:54:57 +0200 Subject: [PATCH] Refresh strict mode killswitch after global toggle change --- client/ui/controllers/settingsController.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/ui/controllers/settingsController.cpp b/client/ui/controllers/settingsController.cpp index 3808375a..c7b224bf 100644 --- a/client/ui/controllers/settingsController.cpp +++ b/client/ui/controllers/settingsController.cpp @@ -246,6 +246,12 @@ void SettingsController::toggleKillSwitch(bool enable) { m_settings->setKillSwitchEnabled(enable); emit killSwitchEnabledChanged(); + if (enable == false) { + emit strictKillSwitchEnabledChanged(false); + } else { + emit strictKillSwitchEnabledChanged(isStrictKillSwitchEnabled()); + } + } bool SettingsController::isStrictKillSwitchEnabled()