Menubar: fix native menus

The condition was reversed

Fixes #8246
This commit is contained in:
Olivier Goffart 2025-04-23 07:29:14 +02:00
parent e7fb9a324c
commit cedfefb1a2

View file

@ -472,7 +472,7 @@ fn process_window(
if let Some(item_tree_root) = item_tree_root {
arguments.push(item_tree_root.into());
arguments.push(Expression::BoolLiteral(!no_native_menu));
arguments.push(Expression::BoolLiteral(no_native_menu));
}
let setup_menubar = Expression::FunctionCall {
function: BuiltinFunction::SetupNativeMenuBar.into(),