Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbars not invalidated after changing "max vehicles" settings. #6204

Closed
DorpsGek opened this issue Jan 11, 2015 · 1 comment
Closed

Toolbars not invalidated after changing "max vehicles" settings. #6204

DorpsGek opened this issue Jan 11, 2015 · 1 comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

adf88 opened the ticket and wrote:

In the settings, we can set maximum allowed number of vehicles of certain type (vehicles.max_trains etc.). Value 0 means to disables certain type of vehicles - some buttons on some toolbars are disabled in this case. However, while changing this settings in-game, no appropriate callback is called to update toolbars. The only thing which gets updated is the main toolbar (through OnPain event). But other toolbars and construction windows stay opened/invalid.

I'm attaching a fix-patch. New callback signals WC_BUILD_TOOLBAR windows to update themselves.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6204
@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Fixed

in r27163. Thanks for the fix!


This comment was imported from FlySpray: https://bugs.openttd.org/task/6204

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant