fix: menus not toggling off after being updated

closes #400
This commit is contained in:
tomasklaen
2023-01-30 11:09:44 +01:00
parent 7647cac9f8
commit 188a579ebf

View File

@@ -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