diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-06-21 14:26:36 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-06-21 14:26:36 -0400 |
commit | 1c19563a76dd227c80693701fdc2d52d65bbf4f4 (patch) | |
tree | d6eaee97f510d37728b8ba36410e410ee03770f9 /indra/newview/scripts/lua | |
parent | e05155494cb3a4b24f9e89252e34953e68eb7107 (diff) |
Introduce require/logout.lua and test_logout.lua.
Add "userQuit" operation to LLAppViewerListener to engage
LLAppViewer::userQuit(), which pops up "Are you sure?" prompt unless
suppressed.
Diffstat (limited to 'indra/newview/scripts/lua')
-rw-r--r-- | indra/newview/scripts/lua/require/logout.lua | 7 | ||||
-rw-r--r-- | indra/newview/scripts/lua/test_logout.lua | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/require/logout.lua b/indra/newview/scripts/lua/require/logout.lua new file mode 100644 index 0000000000..63dcd7f01f --- /dev/null +++ b/indra/newview/scripts/lua/require/logout.lua @@ -0,0 +1,7 @@ +local leap = require 'leap' + +local function logout() + leap.send('LLAppViewer', {op='userQuit'}); +end + +return logout diff --git a/indra/newview/scripts/lua/test_logout.lua b/indra/newview/scripts/lua/test_logout.lua new file mode 100644 index 0000000000..b1ac59e38c --- /dev/null +++ b/indra/newview/scripts/lua/test_logout.lua @@ -0,0 +1,3 @@ +logout = require 'logout' + +logout() |