From 444894a6428aa98b2675a5e651aa2132bf89a4b8 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Mon, 25 Jul 2022 13:15:38 +0200 Subject: [PATCH] fix(StatusSearchPopup): reset search location New `resetSearchLocationClicked` signal introduced. Click on `X` button is emitting `resetSearchLocationClicked` signal and lets a component which is using this one to decide what to do instead just reseting search selection locally to this component. Needed for https://github.com/status-im/status-desktop/issues/6551 --- ui/StatusQ/src/StatusQ/Popups/StatusSearchPopup.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Popups/StatusSearchPopup.qml b/ui/StatusQ/src/StatusQ/Popups/StatusSearchPopup.qml index fdd52e2255..b0e47b420b 100644 --- a/ui/StatusQ/src/StatusQ/Popups/StatusSearchPopup.qml +++ b/ui/StatusQ/src/StatusQ/Popups/StatusSearchPopup.qml @@ -30,6 +30,7 @@ StatusModal { signal resultItemClicked(string itemId) signal resultItemTitleClicked(string titleId) + signal resetSearchLocationClicked() property var formatTimestampFn: function (ts) { return ts @@ -248,7 +249,7 @@ StatusModal { type: StatusFlatRoundButton.Type.Secondary icon.name: "close" icon.color: Theme.palette.directColor1 - onClicked: { root.resetSearchSelection(); } + onClicked: { root.resetSearchLocationClicked(); } } } StatusMenuSeparator {