JoinRoom: enable join button if field is not empty

This commit is contained in:
miruka 2019-11-09 10:48:48 -04:00
parent fa25c101ff
commit 66fe230044

View File

@ -10,7 +10,8 @@ HBox {
onFocusChanged: roomField.forceActiveFocus()
buttonModel: [
{ name: "apply", text: qsTr("Join"), iconName: "apply" },
{ name: "apply", text: qsTr("Join"), iconName: "apply",
enabled: Boolean(roomField.text), },
{ name: "cancel", text: qsTr("Cancel"), iconName: "cancel" },
]