mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Update list of player in invite window on new player or new invite
This commit is contained in:
@@ -99,3 +99,18 @@ GlobalLobbyInviteWindow::GlobalLobbyInviteWindow()
|
||||
|
||||
center();
|
||||
}
|
||||
|
||||
void GlobalLobbyInviteWindow::onActiveGameRooms(const std::vector<GlobalLobbyRoom> & rooms)
|
||||
{
|
||||
accountList->reset();
|
||||
redraw();
|
||||
}
|
||||
|
||||
void GlobalLobbyInviteWindow::onActiveAccounts(const std::vector<GlobalLobbyAccount> & accounts)
|
||||
{
|
||||
if (accountList->size() == accounts.size())
|
||||
accountList->reset();
|
||||
else
|
||||
accountList->resize(accounts.size());
|
||||
redraw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user