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:
parent
3023db6f0f
commit
16605a7aaa
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user