Clear Add PC textbox when closing the dialog
This commit is contained in:
parent
add4b582b5
commit
7cf70b9607
1 changed files with 4 additions and 0 deletions
|
|
@ -413,6 +413,10 @@ ApplicationWindow {
|
|||
editText.forceActiveFocus()
|
||||
}
|
||||
|
||||
onClosed: {
|
||||
editText.clear()
|
||||
}
|
||||
|
||||
onAccepted: {
|
||||
if (editText.text) {
|
||||
ComputerManager.addNewHost(editText.text, false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue