diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-03-23 16:59:22 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-03-23 16:59:22 +0200 |
commit | b576e832d7dd0899a212d8d3a3a9c938ad12a87d (patch) | |
tree | 9a9fd9296911f9337fc4a71432a9160ed87f1d05 | |
parent | e77e1ed8ca0a4ae34c642819fd089fa7daa67eb8 (diff) |
SL-3475 Add 'Close All Dialogs' option for Script dialogs
-rw-r--r-- | indra/newview/llchiclet.cpp | 4 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_script_chiclet.xml | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index dedb06c945..8d89455cd4 100644 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -1092,6 +1092,10 @@ void LLScriptChiclet::onMenuItemClicked(const LLSD& user_data) { LLScriptFloaterManager::instance().removeNotification(getSessionId()); } + else if ("close all" == action) + { + LLIMWellWindow::getInstance()->closeAll(); + } } void LLScriptChiclet::createPopupMenu() diff --git a/indra/newview/skins/default/xui/en/menu_script_chiclet.xml b/indra/newview/skins/default/xui/en/menu_script_chiclet.xml index db29d9cebc..49e52ebb8d 100644 --- a/indra/newview/skins/default/xui/en/menu_script_chiclet.xml +++ b/indra/newview/skins/default/xui/en/menu_script_chiclet.xml @@ -16,4 +16,12 @@ function="ScriptChiclet.Action" parameter="end" /> </menu_item_call> + <menu_item_call + label="Close All Dialogs" + layout="topleft" + name="Close All"> + <menu_item_call.on_click + function="ScriptChiclet.Action" + parameter="close all" /> + </menu_item_call> </menu> |