From d515740fffcda72a298168a78bff362f9b42ee62 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:45:32 +0200 Subject: [PATCH] touchmenu: show menu in MenuSearch --- frontend/ui/widget/touchmenu.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/ui/widget/touchmenu.lua b/frontend/ui/widget/touchmenu.lua index 28cce7f49..5ef72e019 100644 --- a/frontend/ui/widget/touchmenu.lua +++ b/frontend/ui/widget/touchmenu.lua @@ -1048,6 +1048,10 @@ function TouchMenu:search(search_for) end function TouchMenu:openMenu(path, with_animation) + if self.show_parent == self then -- MenuSearch called from dispatcher, menu generated but not opened yet + UIManager:sendEvent(Event:new("ShowMenu", nil, self)) + end + local parts = {} for part in util.gsplit(path, "%.", false) do -- path is ie. "2.3.3.1" table.insert(parts, tonumber(part))