Better sorting of friends list. In case this is not good enough (very laggy DN lookups might delay the sort for a longer time) we will need a timer. Addresses FIRE-833
parent
578c55ef65
commit
c8a016a1e9
|
|
@ -110,8 +110,8 @@ BOOL FSFloaterContacts::postBuild()
|
|||
mFriendList->setShowIcons("FriendsListShowIcons");
|
||||
mFriendList->showPermissions(TRUE);
|
||||
mFriendList->setComparator(&STATUS_COMPARATOR);
|
||||
mFriendList->sort();
|
||||
|
||||
mFriendList->setRefreshCompleteCallback(boost::bind(&FSFloaterContacts::onFriendListRefreshComplete, this));
|
||||
mFriendList->setItemDoubleClickCallback(boost::bind(&FSFloaterContacts::onAvatarListDoubleClicked, this, _1));
|
||||
mFriendList->setReturnCallback(boost::bind(&FSFloaterContacts::onImButtonClicked, this));
|
||||
|
||||
|
|
@ -165,6 +165,11 @@ void FSFloaterContacts::onOpen(const LLSD& key)
|
|||
}
|
||||
}
|
||||
|
||||
// as soon as the avatar list widget tells us all names are loaded, do another sort on the list -Zi
|
||||
void FSFloaterContacts::onFriendListRefreshComplete()
|
||||
{
|
||||
mFriendList->sort();
|
||||
}
|
||||
|
||||
//
|
||||
// Friend actions
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ private:
|
|||
bool isItemsFreeOfFriends(const uuid_vec_t& uuids);
|
||||
|
||||
// misc callbacks
|
||||
void onFriendListRefreshComplete();
|
||||
static void onAvatarPicked(const uuid_vec_t& ids, const std::vector<LLAvatarName> names);
|
||||
|
||||
// friend buttons
|
||||
|
|
|
|||
Loading…
Reference in New Issue