since my hhcolour shader (which doesn't have any parameters) was the first one in the list, it didn't need to load any parameters, which hid a bug that caused errors if the first shader in the menu had parameters
This commit is contained in:
Bottinator22 2024-12-29 12:23:26 -08:00 committed by GitHub
parent fbae5b2223
commit 9beadf3e2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,13 +19,6 @@ local widgetsToGroups = {}
local allSettings = {} local allSettings = {}
local shaderConfig local shaderConfig
function displayed()
shaderConfig = root.getConfiguration("postProcessGroups")
end
function dismissed()
shaderConfig = nil
end
local function addGroupToList(data) local function addGroupToList(data)
local name = widget.addListItem(GROUP_LIST_WIDGET) local name = widget.addListItem(GROUP_LIST_WIDGET)
widget.setText(fmt("%s.%s.button", GROUP_LIST_WIDGET, name), data.friendlyName) widget.setText(fmt("%s.%s.button", GROUP_LIST_WIDGET, name), data.friendlyName)
@ -351,6 +344,7 @@ local function initCallbacks()
end end
function init() function init()
shaderConfig = root.getConfiguration("postProcessGroups")
--log = chat and chat.addMessage or sb.logInfo --log = chat and chat.addMessage or sb.logInfo
widget.clearListItems(GROUP_LIST_WIDGET) widget.clearListItems(GROUP_LIST_WIDGET)