fix suggested port in manual connection dialog
This commit is contained in:
parent
5f9fb02e32
commit
4d2125fe2d
@ -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
|
||||
|
||||
@ -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;}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user