viewer#2819 Group member pagination toggle

Group member pagination is not ready, disable it untill later
meow-7.2.2
Andrey Kleshchev 2024-10-11 22:16:51 +03:00 committed by Andrey Kleshchev
parent 887e417d3f
commit f3ee2f3796
2 changed files with 13 additions and 1 deletions

View File

@ -2469,6 +2469,17 @@
<key>Value</key>
<integer>1</integer>
</map>
<key>UseGroupMemberPagination</key>
<map>
<key>Comment</key>
<string>Enable pagination of group memeber list 50 members at a time.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>DisplayTimecode</key>
<map>
<key>Comment</key>

View File

@ -1360,7 +1360,8 @@ void LLPanelGroupMembersSubTab::activate()
{
if (!gdatap || !gdatap->isMemberDataComplete())
{
const U32 page_size = 50;
static LLCachedControl<bool> enable_pagination(gSavedSettings, "UseGroupMemberPagination", false);
const U32 page_size = enable_pagination() ? 50 : 0;
std::string sort_column_name = mMembersList->getSortColumnName();
bool sort_descending = !mMembersList->getSortAscending();
LLGroupMgr::getInstance()->sendCapGroupMembersRequest(mGroupID, page_size, 0, sort_column_name, sort_descending);