Merge pull request #435 from argonui/ta-percentage

Token Arranger: create percetange labels onLoad if temp tokens present
This commit is contained in:
Entrox-Licher 2023-10-20 11:11:03 -04:00 committed by GitHub
commit c18ab6384e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,13 @@ function onLoad(saveState)
end
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
self.addContextMenuItem("Load default values", function()
loadDefaultValues()