Skip to content

Commit

Permalink
Fix bug in default panel display
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Sep 19, 2022
1 parent d968292 commit 3f2b1a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EndlessClient/HUD/Controls/HudControlsFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ private IGameComponent CreateStatePanel(InGameStates whichState)
}

//news is visible by default when loading the game if news text is set
retPanel.Visible = (_newsProvider.NewsText.Any() && whichState == InGameStates.News) || whichState == InGameStates.Chat;
retPanel.Visible = (_newsProvider.NewsText.Any() && whichState == InGameStates.News) ||
(!_newsProvider.NewsText.Any() && whichState == InGameStates.Chat);

return retPanel;
}
Expand Down

0 comments on commit 3f2b1a3

Please sign in to comment.