Close graph windows when changing timekeeping mode

This commit is contained in:
Jonathan G Rennison 2024-02-22 23:34:52 +00:00
parent c511f93f24
commit c7e95d5b03

View File

@ -1282,6 +1282,13 @@ static void ChangeTimekeepingUnits(int32_t)
}
UpdateTimeSettings(0);
CloseWindowByClass(WC_PAYMENT_RATES);
CloseWindowByClass(WC_COMPANY_VALUE);
CloseWindowByClass(WC_PERFORMANCE_HISTORY);
CloseWindowByClass(WC_DELIVERED_CARGO);
CloseWindowByClass(WC_OPERATING_PROFIT);
CloseWindowByClass(WC_INCOME_GRAPH);
CloseWindowByClass(WC_STATION_CARGO);
}
/**