The reasons is that windows are cached by default. For example, adding "set_cache(false)" in the WareHousesWaresDisplay fixes the problem there.
One solution could be to add this line of code to the constructor of Building_Window, where it would fix such issues in every case of a building window showing varying information, but I am not sure about the performance penalties.
The proper solution would be to call update() on the window when something changes in the building, but I’m not sure what codepath can provide that, given that the UI is somewhat separate from the logic code.
The reasons is that windows are cached by default. For example, adding "set_cache(false)" in the WareHousesWares Display fixes the problem there.
One solution could be to add this line of code to the constructor of Building_Window, where it would fix such issues in every case of a building window showing varying information, but I am not sure about the performance penalties.
The proper solution would be to call update() on the window when something changes in the building, but I’m not sure what codepath can provide that, given that the UI is somewhat separate from the logic code.