1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-30 23:18:08 +02:00

Allow hiding global lobby UI via Shift+Tab

This commit is contained in:
Ivan Savenko 2024-03-11 20:15:39 +02:00
parent 3023db6f0f
commit 16605a7aaa

View File

@ -342,6 +342,12 @@ const std::vector<GlobalLobbyRoom> & GlobalLobbyClient::getActiveRooms() const
void GlobalLobbyClient::activateInterface()
{
if (GH.windows().topWindow<GlobalLobbyWindow>() != nullptr)
{
GH.windows().popWindows(1);
return;
}
if (!GH.windows().findWindows<GlobalLobbyWindow>().empty())
return;