mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Only update ATC buttons if visible
This commit is contained in:
committed by
Mat Sutcliffe
parent
6e9d1c7940
commit
11daf3b418
@@ -269,6 +269,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
ui->comp_AtcStations->setVisible(checked);
|
ui->comp_AtcStations->setVisible(checked);
|
||||||
ui->gb_MessageTo->setFlat(!checked);
|
ui->gb_MessageTo->setFlat(!checked);
|
||||||
|
if (checked) { ui->comp_AtcStations->updateStations(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTextMessageComponent::onSettingsChanged()
|
void CTextMessageComponent::onSettingsChanged()
|
||||||
@@ -706,6 +707,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CTextMessageComponent::updateAtcStationsButtons()
|
void CTextMessageComponent::updateAtcStationsButtons()
|
||||||
{
|
{
|
||||||
|
if (!ui->gb_MessageTo->isChecked()) { return; }
|
||||||
ui->comp_AtcStations->updateStations();
|
ui->comp_AtcStations->updateStations();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user