added blocking of the page with dns settings for servers received by API

This commit is contained in:
vladimir.kuznetsov 2024-01-17 23:38:20 +07:00
parent fac57ac89a
commit 33e229d0b2
2 changed files with 9 additions and 1 deletions

View file

@ -28,6 +28,14 @@ PageType {
anchors.bottom: parent.bottom
contentHeight: content.height
enabled: !ServersModel.isDefaultServerFromApi()
Component.onCompleted: {
if (ServersModel.isDefaultServerFromApi()) {
PageController.showNotificationMessage(qsTr("Default server does not support custom dns"))
}
}
ColumnLayout {
id: content