freeciv21 icon indicating copy to clipboard operation
freeciv21 copied to clipboard

Information widgets open multiple times

Open daavko opened this issue 3 years ago • 0 comments

Describe the bug Every time a player either clicks the menu item or uses a keyboard shortcut to open "Wonders of the world", "Top 5 cities", or "Demographics", a new widget is opened each time, even if there is one already open.

To Reproduce Steps to reproduce the behavior:

  1. Click on, for example, "Demographics" in the menu or use a keyboard shortcut to open it
  2. Do step 1 again
  3. Do step 1 again
  4. Observe 3 identical widgets of demographics

Expected behavior It should either only ever open one widget, or close the opened widget like the Units widget does.

Screenshots freeciv21-client_l6lMVRmpql

Platform and version (please complete the following information):

  • OS: Windows 10
  • Freeciv21 version: beta 2
  • Ruleset/Longturn game (if applicable): not applicable

Additional context No additional context

daavko avatar Jul 07 '22 18:07 daavko