Change label text to DNS exceptions
This commit is contained in:
parent
cafac3aa61
commit
92b0ea6213
8 changed files with 15 additions and 15 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue