Skip to content

Commit 6c42416

Browse files
committed
fix dialogs persisting after connection
1 parent 03e8ba3 commit 6c42416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/client/tf/tf_hud_mainmenuoverride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void CHudMainMenuOverride::OnTick()
350350
{
351351
if ( m_pMainMenuWebUi )
352352
{
353-
const bool bShouldWebUiShow = enginevgui->IsGameUIVisible();
353+
const bool bShouldWebUiShow = bInGame ? enginevgui->IsGameUIVisible() : !bIsConnected;
354354

355355
if ( m_pMainMenuWebUi->IsVisible() != bShouldWebUiShow )
356356
{

0 commit comments

Comments
 (0)