mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-04 00:15:53 +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()
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user