Skip to content

Commit

Permalink
Merge pull request #1185 from ulteq/hidegui-fix
Browse files Browse the repository at this point in the history
[Bugfix] Fixes 'hideGUI' permanently disabling notifications
  • Loading branch information
ulteq committed Oct 17, 2016
2 parents a484fac + 0c4c10b commit 46639eb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/main/gui/GUIManager.cpp
Expand Up @@ -352,12 +352,13 @@ void GUIManager::pushMessageChatBox(Ogre::String txt)


void GUIManager::hideGUI(bool hidden) void GUIManager::hideGUI(bool hidden)
{ {
if (! hidden) { return; } if (hidden)

{
m_impl->panel_SimUtils.HideNotificationBox(); m_impl->panel_SimUtils.HideNotificationBox();
m_impl->panel_SimUtils.SetFPSBoxVisible(false); // This doesn't really make sense, but nobody complained ... ~only_a_ptr, 2016/09 m_impl->panel_SimUtils.SetFPSBoxVisible(false);
m_impl->panel_SimUtils.SetTruckInfoBoxVisible(false); m_impl->panel_SimUtils.SetTruckInfoBoxVisible(false);
m_impl->panel_ChatBox.Hide(); m_impl->panel_ChatBox.Hide();
}
m_impl->panel_SimUtils.DisableNotifications(hidden); m_impl->panel_SimUtils.DisableNotifications(hidden);
} }


Expand Down

0 comments on commit 46639eb

Please sign in to comment.