mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
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:
committed by
Mat Sutcliffe
parent
e46e89c03e
commit
8957d1d767
@@ -113,6 +113,7 @@ namespace BlackGui
|
|||||||
void CAtcButtonComponent::onChangedAtcStations()
|
void CAtcButtonComponent::onChangedAtcStations()
|
||||||
{
|
{
|
||||||
if (!m_backgroundUpdates) { return; }
|
if (!m_backgroundUpdates) { return; }
|
||||||
|
if (!this->isVisible()) { return; }
|
||||||
this->updateStations();
|
this->updateStations();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
ui->comp_OverlayTextMessage->setTab(tab);
|
ui->comp_OverlayTextMessage->setTab(tab);
|
||||||
ui->comp_OverlayTextMessage->updateAtcStationsButtons();
|
ui->comp_OverlayTextMessage->updateAtcStationsButtons();
|
||||||
|
ui->comp_OverlayTextMessage->showTextMessageEntry(true);
|
||||||
this->setModeToOverlayTextMessage();
|
this->setModeToOverlayTextMessage();
|
||||||
this->display();
|
this->display();
|
||||||
ui->comp_OverlayTextMessage->focusTextEntry();
|
ui->comp_OverlayTextMessage->focusTextEntry();
|
||||||
|
|||||||
Reference in New Issue
Block a user