summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/airport_gui.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 08d938f91..d9008431c 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -533,6 +533,18 @@ public:
{
CheckRedrawStationCoverage(this);
}
+
+ virtual void OnTimeout()
+ {
+ if (this->IsWidgetLowered(BAIRW_LAYOUT_DECREASE)) {
+ this->ToggleWidgetLoweredState(BAIRW_LAYOUT_DECREASE);
+ this->SetDirty();
+ }
+ if (this->IsWidgetLowered(BAIRW_LAYOUT_INCREASE)) {
+ this->ToggleWidgetLoweredState(BAIRW_LAYOUT_INCREASE);
+ this->SetDirty();
+ }
+ }
};
static const NWidgetPart _nested_build_airport_widgets[] = {