added blocking of the page with dns settings for servers received by API
This commit is contained in:
parent
fac57ac89a
commit
33e229d0b2
2 changed files with 9 additions and 1 deletions
|
@ -28,6 +28,14 @@ PageType {
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
contentHeight: content.height
|
contentHeight: content.height
|
||||||
|
|
||||||
|
enabled: !ServersModel.isDefaultServerFromApi()
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
if (ServersModel.isDefaultServerFromApi()) {
|
||||||
|
PageController.showNotificationMessage(qsTr("Default server does not support custom dns"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: content
|
id: content
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ PageType {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (ServersModel.isDefaultServerFromApi()) {
|
if (ServersModel.isDefaultServerFromApi()) {
|
||||||
PageController.showNotificationMessage(qsTr("This server does not support split tunneling function"))
|
PageController.showNotificationMessage(qsTr("Default server does not support split tunneling function"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue