mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
Refresh strict mode killswitch after global toggle change
This commit is contained in:
@@ -246,6 +246,12 @@ void SettingsController::toggleKillSwitch(bool enable)
|
|||||||
{
|
{
|
||||||
m_settings->setKillSwitchEnabled(enable);
|
m_settings->setKillSwitchEnabled(enable);
|
||||||
emit killSwitchEnabledChanged();
|
emit killSwitchEnabledChanged();
|
||||||
|
if (enable == false) {
|
||||||
|
emit strictKillSwitchEnabledChanged(false);
|
||||||
|
} else {
|
||||||
|
emit strictKillSwitchEnabledChanged(isStrictKillSwitchEnabled());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SettingsController::isStrictKillSwitchEnabled()
|
bool SettingsController::isStrictKillSwitchEnabled()
|
||||||
|
|||||||
Reference in New Issue
Block a user