freeciv21
freeciv21 copied to clipboard
Closing the "Messages options" view opens the "Cities" view every time (or a random different one sometimes)
Describe the bug If you open the Messages options view via "Game > Messages" and click the "Cancel" button there, you get to the "Cities" view (or sometimes a different one).
To Reproduce Steps to reproduce the behavior:
- Open the Messages options via "Game > Messages"
- Click the "Cancel" button on the bottom
- Observe you're in the "Cities" view now
Expected behavior It should put you wherever you were before, or to the map view.
Platform and version (please complete the following information):
- OS: Windows 10
- Freeciv21 version: beta 2
- Ruleset/Longturn game (if applicable): not applicable
Additional context If you open the Messages options when in a different view, you get to a seemingly different view every time, doesn't look like there's a pattern to it.
Can't repro
Looks like it only appears after you open and close the shortcuts settings
I'll create a video, it'll be easier
Actually, it's even simpler. New, more accurate reproduction steps:
- Start a new game
- Switch to "cities" view
- Switch back to "map" view
- Open messages settings in Game > Messages
- Close messages settings by clicking "Cancel" on the bottom left
- Observe you're on "cities" view, even though you should be on "map" view
It appears to remember the second-to-last view you opened, instead of the last one. It works the same regardless of which view you open
Reproduced. The way this widget is opened is a mess (as you'd expect from old code).