fix suggested port in manual connection dialog

This commit is contained in:
Michael Zanetti 2018-08-03 21:23:34 +02:00
parent 5f9fb02e32
commit 4d2125fe2d
2 changed files with 5 additions and 3 deletions

View File

@ -312,7 +312,7 @@ Page {
running: parent.visible
}
Label {
text: qsTr("Trying to connect...")
text: qsTr("Trying to connect to %1...").arg(Engine.connection.url)
font.pixelSize: app.largeFont
Layout.fillWidth: true
wrapMode: Text.WordWrap

View File

@ -1,4 +1,4 @@
import QtQuick 2.9
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import Nymea 1.0
@ -41,7 +41,9 @@ Page {
TextField {
id: portTextInput
Layout.fillWidth: true
placeholderText: connectionTypeComboBox.currentIndex === 0 ? "2222" : "4444"
placeholderText: connectionTypeComboBox.currentIndex === 0 ?
secureCheckBox.checked ? "2223" : "2222"
: secureCheckBox.checked ? "4445" : "4444"
validator: IntValidator{bottom: 1; top: 65535;}
}