fix(AppSearch): ensure app search loader is deactivated when popup is

closed

Otherwise, the loader stays active, which requires users to hit CTRL-F
twice to reopen it again (because it'll first deactivate, then activate
again).

Fixes #7989
This commit is contained in:
Pascal Precht 2022-11-07 15:56:59 +01:00 committed by r4bbit.eth
parent 8d90204e0a
commit df3f3d3d7b
2 changed files with 5 additions and 0 deletions

View File

@ -286,11 +286,13 @@ Item {
function closeSearchPopup() {
if (item)
item.closeSearchPopup()
active = false
}
sourceComponent: AppSearch {
store: appMain.rootStore.appSearchStore
onClosed: appSearch.active = false
}
}

View File

@ -14,6 +14,8 @@ Item {
})
property alias opened: searchPopup.opened
signal closed()
function openSearchPopup(){
searchPopup.open()
}
@ -72,6 +74,7 @@ Item {
}
onClosed: {
searchPopupMenu.dismiss();
appSearch.closed();
}
onResetSearchLocationClicked: {
searchPopup.resetSearchSelection();