mirror of
https://github.com/muesli/telephant
synced 2024-11-26 05:10:18 +00:00
Reset ConnectionPopup before opening it
This commit is contained in:
parent
5212953a67
commit
3ca0db1022
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -209,7 +209,10 @@ ApplicationWindow {
|
|||
|
||||
MenuItem {
|
||||
text: qsTr("Connect")
|
||||
onTriggered: connectDialog.open()
|
||||
onTriggered: function() {
|
||||
connectDialog.reset()
|
||||
connectDialog.open()
|
||||
}
|
||||
}
|
||||
/*
|
||||
MenuItem {
|
||||
|
|
Loading…
Reference in a new issue