From cfa6dc076b30656cc5699e892bb16f7dbfb980f9 Mon Sep 17 00:00:00 2001 From: uramer Date: Mon, 19 Feb 2024 19:39:45 +0100 Subject: [PATCH] Render global setting groups on renderlua --- files/data/scripts/omw/settings/menu.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/data/scripts/omw/settings/menu.lua b/files/data/scripts/omw/settings/menu.lua index dc9ae6cba5..704b29f032 100644 --- a/files/data/scripts/omw/settings/menu.lua +++ b/files/data/scripts/omw/settings/menu.lua @@ -407,10 +407,7 @@ local function updateGroups(global) end end)) end - local updatePlayerGroups = function() updateGroups(false) end -updatePlayerGroups() - local updateGlobalGroups = function() updateGroups(true) end local menuGroups = {} @@ -472,6 +469,11 @@ local function registerPage(options) ui.registerSettingsPage(pageOptions[page.key]) end +updatePlayerGroups() +if menu.getState() == menu.STATE.Running then -- handle reloadlua correctly + updateGlobalGroups() +end + return { interfaceName = 'Settings', interface = {