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
|
||||
contentHeight: content.height
|
||||
|
||||
enabled: !ServersModel.isDefaultServerFromApi()
|
||||
|
||||
Component.onCompleted: {
|
||||
if (ServersModel.isDefaultServerFromApi()) {
|
||||
PageController.showNotificationMessage(qsTr("Default server does not support custom dns"))
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: content
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue