diff --git a/files/data/scripts/omw/settings/menu.lua b/files/data/scripts/omw/settings/menu.lua index d20d75bf30..87c3dc6e6a 100644 --- a/files/data/scripts/omw/settings/menu.lua +++ b/files/data/scripts/omw/settings/menu.lua @@ -493,6 +493,9 @@ return { end, registerRenderer = registerRenderer, registerGroup = function(options) + if not options.permanentStorage then + error('Menu scripts are only allowed to register setting groups with permanentStorage = true') + end common.registerGroup(options) menuGroups[options.key] = true end,