Merge pull request #46 from mxve/serverlistsorting

Sort ServerList by players
This commit is contained in:
Louve 2023-10-21 21:02:56 +02:00 committed by GitHub
commit 4671eb2b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,8 @@
namespace Components namespace Components
{ {
bool ServerList::SortAsc = true; bool ServerList::SortAsc = false;
int ServerList::SortKey = static_cast<std::underlying_type_t<Column>>(Column::Ping); int ServerList::SortKey = static_cast<std::underlying_type_t<Column>>(Column::Players);
unsigned int ServerList::CurrentServer = 0; unsigned int ServerList::CurrentServer = 0;
ServerList::Container ServerList::RefreshContainer; ServerList::Container ServerList::RefreshContainer;