Fix initial info totals when opening group/vehicle window
This commit is contained in:
@@ -429,8 +429,6 @@ public:
|
||||
this->BuildGroupList(vli.company);
|
||||
this->group_sb->SetCount(this->groups.size());
|
||||
|
||||
this->RecalculateInfoTotals();
|
||||
|
||||
this->GetWidget<NWidgetCore>(WID_GL_CAPTION)->widget_data = STR_VEHICLE_LIST_TRAIN_CAPTION + this->vli.vtype;
|
||||
this->GetWidget<NWidgetCore>(WID_GL_LIST_VEHICLE)->tool_tip = STR_VEHICLE_LIST_TRAIN_LIST_TOOLTIP + this->vli.vtype;
|
||||
|
||||
@@ -445,6 +443,7 @@ public:
|
||||
|
||||
this->BuildVehicleList();
|
||||
this->SortVehicleList();
|
||||
this->RecalculateInfoTotals();
|
||||
}
|
||||
|
||||
void Close(int data = 0) override
|
||||
|
Reference in New Issue
Block a user