Change label text to DNS exceptions

This commit is contained in:
Mykola Baibuz 2025-03-10 20:43:46 +02:00
parent cafac3aa61
commit 92b0ea6213
8 changed files with 15 additions and 15 deletions

View file

@ -11,8 +11,8 @@
#include "core/defs.h" #include "core/defs.h"
AllowedDnsController::AllowedDnsController(const std::shared_ptr<Settings> &settings, AllowedDnsController::AllowedDnsController(const std::shared_ptr<Settings> &settings,
const QSharedPointer<AllowedDnsModel> &allowedDnsModel, const QSharedPointer<AllowedDnsModel> &allowedDnsModel,
QObject *parent) QObject *parent)
: QObject(parent), m_settings(settings), m_allowedDnsModel(allowedDnsModel) : QObject(parent), m_settings(settings), m_allowedDnsModel(allowedDnsModel)
{ {
} }

View file

@ -11,8 +11,8 @@ class AllowedDnsController : public QObject
Q_OBJECT Q_OBJECT
public: public:
explicit AllowedDnsController(const std::shared_ptr<Settings> &settings, explicit AllowedDnsController(const std::shared_ptr<Settings> &settings,
const QSharedPointer<AllowedDnsModel> &allowedDnsModel, const QSharedPointer<AllowedDnsModel> &allowedDnsModel,
QObject *parent = nullptr); QObject *parent = nullptr);
public slots: public slots:
void addDns(QString ip); void addDns(QString ip);

View file

@ -99,8 +99,8 @@ PageType {
Layout.fillWidth: true Layout.fillWidth: true
enabled: true enabled: true
text: qsTr("Kill Switch Exceptions") text: qsTr("DNS Exceptions")
descriptionText: qsTr("IP addresses that will remain accessible even when Kill Switch is activated") descriptionText: qsTr("DNS servers from the list will remain accessible when Kill Switch is triggered")
rightImageSource: "qrc:/images/controls/chevron-right.svg" rightImageSource: "qrc:/images/controls/chevron-right.svg"
clickedFunction: function() { clickedFunction: function() {

View file

@ -42,8 +42,8 @@ PageType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.leftMargin: 16 Layout.leftMargin: 16
headerText: qsTr("Kill Switch Exceptions") headerText: qsTr("DNS Exceptions")
descriptionText: qsTr("Addresses from the list will remain accessible when Kill Switch is triggered") descriptionText: qsTr("DNS servers from the list will remain accessible when Kill Switch is triggered")
} }
} }

View file

@ -56,7 +56,7 @@ bool KillSwitch::refresh(bool enabled)
{ {
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
QSettings RegHLM("HKEY_LOCAL_MACHINE\\Software\\" + QString(ORGANIZATION_NAME) QSettings RegHLM("HKEY_LOCAL_MACHINE\\Software\\" + QString(ORGANIZATION_NAME)
+ "\\" + QString(APPLICATION_NAME), QSettings::NativeFormat); + "\\" + QString(APPLICATION_NAME), QSettings::NativeFormat);
RegHLM.setValue("strictKillSwitchEnabled", enabled); RegHLM.setValue("strictKillSwitchEnabled", enabled);
#endif #endif