feature: Add Kill Switch settings page with strict mode option

This commit is contained in:
aiamnezia 2025-02-17 21:35:08 +04:00
parent 5fc80121b4
commit 4407e2801b
9 changed files with 155 additions and 18 deletions

View file

@ -245,6 +245,18 @@ bool SettingsController::isKillSwitchEnabled()
void SettingsController::toggleKillSwitch(bool enable)
{
m_settings->setKillSwitchEnabled(enable);
emit killSwitchEnabledChanged();
}
bool SettingsController::isStrictKillSwitchEnabled()
{
return m_settings->isStrictKillSwitchEnabled();
}
void SettingsController::toggleStrictKillSwitch(bool enable)
{
m_settings->setStrictKillSwitchEnabled(enable);
emit strictKillSwitchEnabledChanged();
}
bool SettingsController::isNotificationPermissionGranted()