diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-10-10 23:21:08 +0200 |
---|---|---|
committer | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-10-11 08:40:50 +0200 |
commit | 45a1a94a35142da71c507c724ae4d1498217e449 (patch) | |
tree | b50cdef12e969b0bc66a54bd48749abdc3eb6a15 /indra/newview/llpanelappearancetab.cpp | |
parent | e9ffe7ee471a2bbe428ec6a3ad07a7ef998c2e36 (diff) |
SL-20432 Filtering My Outfits with big number of items freezes UI
Diffstat (limited to 'indra/newview/llpanelappearancetab.cpp')
-rw-r--r-- | indra/newview/llpanelappearancetab.cpp | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/indra/newview/llpanelappearancetab.cpp b/indra/newview/llpanelappearancetab.cpp index 8fa8867c69..16bd8a1380 100644 --- a/indra/newview/llpanelappearancetab.cpp +++ b/indra/newview/llpanelappearancetab.cpp @@ -28,12 +28,35 @@ #include "llpanelappearancetab.h" - #include "llinventoryfunctions.h" #include "llinventorymodel.h" #include "llviewerinventory.h" -//virtual +std::string LLPanelAppearanceTab::sRecentFilterSubString; + +void LLPanelAppearanceTab::setFilterSubString(const std::string& new_string) +{ + if (new_string != mFilterSubString) + { + std::string old_string = mFilterSubString; + mFilterSubString = new_string; + onFilterSubStringChanged(mFilterSubString, old_string); + } + + sRecentFilterSubString = new_string; +} + +void LLPanelAppearanceTab::checkFilterSubString() +{ + if (sRecentFilterSubString != mFilterSubString) + { + std::string old_string = mFilterSubString; + mFilterSubString = sRecentFilterSubString; + onFilterSubStringChanged(mFilterSubString, old_string); + } +} + +// virtual bool LLPanelAppearanceTab::canTakeOffSelected() { uuid_vec_t selected_uuids; |