From e8012c70d09cb1518c951383b7c75e25833800ff Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 9 May 2025 08:58:12 +0200 Subject: [PATCH] Fix MenuBar on android The ContextMenuArea on android intercepts clicks to trigger on long clicks and this prevent the MenuBar's TouchArea to work properly Fixes #8353 --- internal/compiler/widgets/common/menus.slint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/compiler/widgets/common/menus.slint b/internal/compiler/widgets/common/menus.slint index 9cdc50ab9..b7b3c14d1 100644 --- a/internal/compiler/widgets/common/menus.slint +++ b/internal/compiler/widgets/common/menus.slint @@ -166,6 +166,8 @@ export component MenuBarImpl { } context-menu := ContextMenuInternal { + // Only manual calls to `show` should open the menu, and we shouldn't react to clicks. + enabled: false; activated(entry) => { root.activated(entry); self.close(); } sub-menu(entry) => { root.sub-menu(entry); } }