Reset Launcher text input on close
This commit is contained in:
parent
c3515ddcc0
commit
aedbacc495
1 changed files with 10 additions and 0 deletions
|
|
@ -48,6 +48,16 @@ NPanel {
|
|||
}
|
||||
}
|
||||
|
||||
onClosed: {
|
||||
// Reset search bar when launcher is closed
|
||||
searchText = ""
|
||||
selectedIndex = 0
|
||||
if (searchInput) {
|
||||
searchInput.text = ""
|
||||
searchInput.cursorPosition = 0
|
||||
}
|
||||
}
|
||||
|
||||
// Import modular components
|
||||
Calculator {
|
||||
id: calculator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue