Permalink
Browse files

Merge pull request #1185 from ulteq/hidegui-fix

[Bugfix] Fixes 'hideGUI' permanently disabling notifications
  • Loading branch information...
ulteq committed Oct 17, 2016
2 parents a484fac + 0c4c10b commit 46639eb82eb4b65fc2d02bd6980b234286e18d9d
Showing with 7 additions and 6 deletions.
  1. +7 −6 source/main/gui/GUIManager.cpp
@@ -352,12 +352,13 @@ void GUIManager::pushMessageChatBox(Ogre::String txt)
void GUIManager::hideGUI(bool hidden)
{
if (! hidden) { return; }
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.SetTruckInfoBoxVisible(false);
m_impl->panel_ChatBox.Hide();
if (hidden)
{
m_impl->panel_SimUtils.HideNotificationBox();
m_impl->panel_SimUtils.SetFPSBoxVisible(false);
m_impl->panel_SimUtils.SetTruckInfoBoxVisible(false);
m_impl->panel_ChatBox.Hide();
}
m_impl->panel_SimUtils.DisableNotifications(hidden);
}

0 comments on commit 46639eb

Please sign in to comment.