mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 15:24:39 +00:00
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:
parent
8d90204e0a
commit
df3f3d3d7b
@ -286,11 +286,13 @@ Item {
|
||||
function closeSearchPopup() {
|
||||
if (item)
|
||||
item.closeSearchPopup()
|
||||
|
||||
active = false
|
||||
}
|
||||
|
||||
sourceComponent: AppSearch {
|
||||
store: appMain.rootStore.appSearchStore
|
||||
onClosed: appSearch.active = false
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user