diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-08-28 10:23:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 10:23:53 -0400 |
commit | 6f454ad8366ed33bbe199c3fc3ed69e6d3448cec (patch) | |
tree | 05f856f85c00194c6c43ca23cacb7021a50ffa33 /indra/newview/scripts/lua/test_toolbars.lua | |
parent | c225b44a59ddd6b84105ace4181b3ca9f7439bfa (diff) | |
parent | 7b21acd39745d265548eeb62d687cde9febb1f7a (diff) |
Merge pull request #2416 from secondlife/lua-lazymod
Allow UI to have lazily-loaded submodules.
Diffstat (limited to 'indra/newview/scripts/lua/test_toolbars.lua')
-rw-r--r-- | indra/newview/scripts/lua/test_toolbars.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/scripts/lua/test_toolbars.lua b/indra/newview/scripts/lua/test_toolbars.lua index 9a832c5644..7683fca8a3 100644 --- a/indra/newview/scripts/lua/test_toolbars.lua +++ b/indra/newview/scripts/lua/test_toolbars.lua @@ -1,13 +1,11 @@ -popup = require 'popup' UI = require 'UI' -local OK = 'OK_okcancelbuttons' local BUTTONS = UI.getToolbarBtnNames() local TOOLBARS = {'left','right','bottom'} -- Clear the toolbars and then add the toolbar buttons to the random toolbar -response = popup:alertYesCancel('Toolbars will be randomly reshuffled. Proceed?') -if next(response) == OK then +response = UI.popup:alertYesCancel('Toolbars will be randomly reshuffled. Proceed?') +if response == 'OK' then UI.clearAllToolbars() math.randomseed(os.time()) |