The new statistics slider does not update if the window is left open
Bug #887728 reported by
Hans Joachim Desserud
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
(Split out from bug 536543)
1. Start a new game.
2. Open Statistics->General Statistics.
3. Leave the window open and increase the game speed to 50x and leave it for a while
Expected result:
New options should be added to the slider as time goes, when they make sense.
Actual result:
While the window is open, the slider does not update. However, if you close the window and reopen it, any new options that make sense will have been added.
It was commented on bug 536543 that this was a known issue, and would probably be hard to fix with the current code.
Widelands r6090.
Related branches
lp:~nomeata/widelands/plot-improvements
- Widelands Developers: Pending requested
-
Diff: 19 lines (+4/-2)1 file modifiedsrc/wui/plot_area.cc (+4/-2)
Changed in widelands: | |
milestone: | none → build17-rc1 |
To post a comment you must log in.
Just a remark for later: It should actually be slightly easier now; a call to layout() in the DiscreteSlider class should take care of any rearranging. The only problem left is to communicate the change from the WUI_Plot class to the associated slider. But a simple pointer could work, assuming (or enforcing) that at most one slider is generated for a given Plot instance.