Refresh strict mode killswitch after global toggle change

This commit is contained in:
Mykola Baibuz 2025-03-01 20:54:57 +02:00
parent 6ea21b852f
commit 0cf9d3c9bd

View file

@ -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()