From 5928125594caa264d332a618c17471886c9400f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 5 Oct 2024 09:21:03 +0200 Subject: [PATCH] Make more Lua tool properties trigger a menu rebuild Turns out GameView needs to be told about every single thing, oops. --- src/lua/LuaTools.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lua/LuaTools.cpp b/src/lua/LuaTools.cpp index 68880bb5b..0480c58b8 100644 --- a/src/lua/LuaTools.cpp +++ b/src/lua/LuaTools.cpp @@ -336,10 +336,10 @@ static int property(lua_State *L) } return false; }; - if (handleProperty(&SimTool::Name , "Name" , false) || - handleProperty(&SimTool::Description, "Description", false) || - handleProperty(&SimTool::Colour , "Colour" , false) || - handleProperty(&SimTool::Colour , "Color" , false) || + if (handleProperty(&SimTool::Name , "Name" , true) || + handleProperty(&SimTool::Description, "Description", true) || + handleProperty(&SimTool::Colour , "Colour" , true) || + handleProperty(&SimTool::Colour , "Color" , true) || handleProperty(&SimTool::MenuSection, "MenuSection", true) || handleProperty(&SimTool::MenuVisible, "MenuVisible", true)) {