Reset ConnectionPopup before opening it

This commit is contained in:
Christian Muehlhaeuser 2019-05-10 15:47:50 +02:00
parent 5212953a67
commit 3ca0db1022
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E
2 changed files with 10 additions and 1 deletions

View file

@ -11,6 +11,12 @@ Popup {
focus: true
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
property var reset: function() {
connectSwipeView.currentIndex = 0
instanceArea.text = ""
codeArea.text = ""
}
ColumnLayout {
spacing: 16
anchors.fill: parent

View file

@ -209,7 +209,10 @@ ApplicationWindow {
MenuItem {
text: qsTr("Connect")
onTriggered: connectDialog.open()
onTriggered: function() {
connectDialog.reset()
connectDialog.open()
}
}
/*
MenuItem {