From 188a579ebfd554eab4a2f14d8f281e92308d37c8 Mon Sep 17 00:00:00 2001 From: tomasklaen Date: Mon, 30 Jan 2023 11:09:44 +0100 Subject: [PATCH] fix: menus not toggling off after being updated closes #400 --- scripts/uosc_shared/elements/Menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uosc_shared/elements/Menu.lua b/scripts/uosc_shared/elements/Menu.lua index aad5016..7e2b217 100644 --- a/scripts/uosc_shared/elements/Menu.lua +++ b/scripts/uosc_shared/elements/Menu.lua @@ -135,7 +135,7 @@ function Menu:update(data) local menus_to_serialize = {{new_root, data}} local old_current_id = self.current and self.current.id - table_assign(new_root, data, {'title', 'hint', 'keep_open'}) + table_assign(new_root, data, {'type', 'title', 'hint', 'keep_open'}) local i = 0 while i < #menus_to_serialize do