summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/depot_gui.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index f689107ee..e3cb1dafa 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -924,6 +924,18 @@ struct DepotWindow : Window {
_cursor.vehchain = false;
}
+ virtual void OnTimeout()
+ {
+ if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL)) {
+ this->RaiseWidget(DEPOT_WIDGET_SELL);
+ this->InvalidateWidget(DEPOT_WIDGET_SELL);
+ }
+ if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL_CHAIN)) {
+ this->RaiseWidget(DEPOT_WIDGET_SELL_CHAIN);
+ this->InvalidateWidget(DEPOT_WIDGET_SELL_CHAIN);
+ }
+ }
+
virtual void OnResize(Point delta)
{
this->vscroll.cap += delta.y / (int)this->resize.step_height;