diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2022-03-02 15:08:11 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2022-03-02 15:08:11 +0200 |
commit | eb38bd7837ac331d61861888b986e6ba5cd568d3 (patch) | |
tree | 2710427f399f5242af62550b274d80a96621eec3 /indra | |
parent | e70fe3a50d43bd5276f80c9f82fcfb2de02109cb (diff) |
DRTVWR-483 Post-merge fix - restored the lost code
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 9cdd34d80e..41ee6fb793 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -6279,6 +6279,29 @@ class LLAvatarToggleMyProfile : public view_listener_t } }; +class LLAvatarTogglePicks : public view_listener_t +{ + bool handleEvent(const LLSD& userdata) + { + LLFloater * instance = LLAvatarActions::getProfileFloater(gAgent.getID()); + if (LLFloater::isMinimized(instance) || (instance && !instance->hasFocus() && !instance->getIsChrome())) + { + instance->setMinimized(FALSE); + instance->setFocus(TRUE); + LLAvatarActions::showPicks(gAgent.getID()); + } + else if (picks_tab_visible()) + { + instance->closeFloater(); + } + else + { + LLAvatarActions::showPicks(gAgent.getID()); + } + return true; + } +}; + class LLAvatarToggleSearch : public view_listener_t { bool handleEvent(const LLSD& userdata) |