From 1c19563a76dd227c80693701fdc2d52d65bbf4f4 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Fri, 21 Jun 2024 14:26:36 -0400 Subject: 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. --- indra/newview/scripts/lua/require/logout.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 indra/newview/scripts/lua/require/logout.lua (limited to 'indra/newview/scripts/lua/require/logout.lua') 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 -- cgit v1.2.3