minimized construction window gets maximized when construction ends
Bug #1290045 reported by
Flávio J. Saraiva
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
Not sure if this is intended behavior, this is a follow up to comment 2 of bug #1289943.
A minimized construction window will get automatically maximized when construction ends.
Steps to reproduce:
- start a game
- place a building
- click on building to open the construction window
- CTRL+click on the title to minimize it
- wait for construction to end
- you'll see the window get maximized
Expected behaviour:
Minimized windows stays minimized.
Related branches
lp://staging/~widelands-dev/widelands/notifications_buildingwindows
- Notabilis: Approve
- GunChleoc: Needs Resubmitting
-
Diff: 2023 lines (+612/-408)38 files modifiedsrc/economy/CMakeLists.txt (+0/-1)
src/economy/expedition_bootstrap.cc (+3/-7)
src/economy/portdock.cc (+0/-1)
src/logic/editor_game_base.h (+1/-0)
src/logic/map_objects/immovable.cc (+1/-1)
src/logic/map_objects/tribes/building.cc (+3/-13)
src/logic/map_objects/tribes/building.h (+14/-18)
src/logic/map_objects/tribes/constructionsite.cc (+3/-7)
src/logic/map_objects/tribes/constructionsite.h (+0/-1)
src/logic/map_objects/tribes/dismantlesite.h (+0/-2)
src/logic/map_objects/tribes/militarysite.h (+0/-2)
src/logic/map_objects/tribes/productionsite.cc (+3/-2)
src/logic/map_objects/tribes/productionsite.h (+0/-2)
src/logic/map_objects/tribes/ship.cc (+1/-1)
src/logic/map_objects/tribes/trainingsite.h (+0/-1)
src/logic/map_objects/tribes/warehouse.h (+0/-2)
src/logic/player.cc (+6/-0)
src/notifications/note_ids.h (+1/-0)
src/wui/CMakeLists.txt (+5/-1)
src/wui/building_ui.cc (+0/-74)
src/wui/buildingwindow.cc (+82/-64)
src/wui/buildingwindow.h (+20/-9)
src/wui/constructionsitewindow.cc (+16/-31)
src/wui/constructionsitewindow.h (+46/-0)
src/wui/dismantlesitewindow.cc (+14/-32)
src/wui/dismantlesitewindow.h (+46/-0)
src/wui/interactive_gamebase.cc (+90/-0)
src/wui/interactive_gamebase.h (+12/-0)
src/wui/interactive_player.cc (+4/-2)
src/wui/interactive_spectator.cc (+7/-4)
src/wui/militarysitewindow.cc (+11/-28)
src/wui/militarysitewindow.h (+47/-0)
src/wui/productionsitewindow.cc (+27/-23)
src/wui/productionsitewindow.h (+8/-1)
src/wui/trainingsitewindow.cc (+12/-34)
src/wui/trainingsitewindow.h (+48/-0)
src/wui/warehousewindow.cc (+35/-44)
src/wui/warehousewindow.h (+46/-0)
Changed in widelands: | |
status: | Triaged → In Progress |
milestone: | none → build20-rc1 |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
I believe this is a (un)intended consequence of bug 1132238. The old behaviour was that any construction site building you had open would be closed once the building was finished because there was no link between the construction site and the finished building. Thus, in order to adjust the settings you would have to look up the building again and reopen the window in order to do so.
However, it looks like the implementation doesn't take into consideration whether the construction site window was minimized (probably an edge case which wasn't considered at the time). It would be nice if it could remember the current state of the construction window when replacing it with a building window.