mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
added blocking of the page with dns settings for servers received by API
This commit is contained in:
@@ -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"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user