Ref T536, show text entry for overlay text messages and ignore button updates if invisible

Remark: Invisibe always caused the hiden group box to show grayed out buttons
This approach is a bit hacky as the component actually does not know about its surrounding group box
This commit is contained in:
Klaus Basan
2019-02-10 16:12:32 +01:00
committed by Mat Sutcliffe
parent e46e89c03e
commit 8957d1d767
2 changed files with 2 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ namespace BlackGui
void CAtcButtonComponent::onChangedAtcStations()
{
if (!m_backgroundUpdates) { return; }
if (!this->isVisible()) { return; }
this->updateStations();
}

View File

@@ -268,6 +268,7 @@ namespace BlackGui
{
ui->comp_OverlayTextMessage->setTab(tab);
ui->comp_OverlayTextMessage->updateAtcStationsButtons();
ui->comp_OverlayTextMessage->showTextMessageEntry(true);
this->setModeToOverlayTextMessage();
this->display();
ui->comp_OverlayTextMessage->focusTextEntry();