Refresh killswitch mode when it toggled

This commit is contained in:
Mykola Baibuz
2025-02-17 22:43:38 +02:00
parent 1fa96a09a0
commit 7a3520cb20
8 changed files with 28 additions and 4 deletions
+7
View File
@@ -52,6 +52,13 @@ void VpnConnection::onBytesChanged(quint64 receivedBytes, quint64 sentBytes)
emit bytesChanged(receivedBytes, sentBytes);
}
void VpnConnection::onKillswitchModeChanged()
{
#ifdef AMNEZIA_DESKTOP
IpcClient::Interface()->refreshKillSwitch();
#endif
}
void VpnConnection::onConnectionStateChanged(Vpn::ConnectionState state)
{