mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +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()
|
void GlobalLobbyClient::activateInterface()
|
||||||
{
|
{
|
||||||
|
if (GH.windows().topWindow<GlobalLobbyWindow>() != nullptr)
|
||||||
|
{
|
||||||
|
GH.windows().popWindows(1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!GH.windows().findWindows<GlobalLobbyWindow>().empty())
|
if (!GH.windows().findWindows<GlobalLobbyWindow>().empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user