create buttons on load if temp tokens present

This commit is contained in:
Chr1Z93 2023-10-20 16:36:13 +02:00
parent 472c091133
commit ad06db34f8

View File

@ -70,6 +70,12 @@ function onLoad(saveState)
createButtonsAndInputs() createButtonsAndInputs()
-- maybe trigger layout() to draw percentage buttons
local objList = getObjectsWithTag("tempToken")
if #objList > 0 then
Wait.time(layout, 0.5)
end
-- context menu items -- context menu items
self.addContextMenuItem("Load default values", function() self.addContextMenuItem("Load default values", function()
loadDefaultValues() loadDefaultValues()