Update orders window when renaming/removing dispatch schedule
This commit is contained in:
@@ -1378,7 +1378,7 @@ enum {
|
||||
*
|
||||
* For vehicles of other companies, both button rows are not displayed.
|
||||
*/
|
||||
struct OrdersWindow : public Window {
|
||||
struct OrdersWindow : public GeneralVehicleWindow {
|
||||
private:
|
||||
/** Under what reason are we using the PlaceObject functionality? */
|
||||
enum OrderPlaceObjectState {
|
||||
@@ -1462,7 +1462,6 @@ private:
|
||||
int selected_order;
|
||||
VehicleOrderID order_over; ///< Order over which another order is dragged, \c INVALID_VEH_ORDER_ID if none.
|
||||
OrderPlaceObjectState goto_type;
|
||||
const Vehicle *vehicle; ///< Vehicle owning the orders being displayed and manipulated.
|
||||
Scrollbar *vscroll;
|
||||
bool can_do_refit; ///< Vehicle chain can be refitted in depot.
|
||||
bool can_do_autorefit; ///< Vehicle chain can be auto-refitted.
|
||||
@@ -1812,10 +1811,8 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
OrdersWindow(WindowDesc *desc, const Vehicle *v) : Window(desc)
|
||||
OrdersWindow(WindowDesc *desc, const Vehicle *v) : GeneralVehicleWindow(desc, v)
|
||||
{
|
||||
this->vehicle = v;
|
||||
|
||||
this->CreateNestedTree();
|
||||
this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
|
||||
this->GetWidget<NWidgetStacked>(WID_O_SEL_OCCUPANCY)->SetDisplayedPlane(_settings_client.gui.show_order_occupancy_by_default ? 0 : SZSP_NONE);
|
||||
|
Reference in New Issue
Block a user