mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Allow hiding global lobby UI via Shift+Tab
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user