Project

General

Profile

Actions

Bug #2475

open

gtk4: unit selection dialog does not show activity change

Added by Andrew McGuinness about 9 hours ago. Updated about 8 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/10/2026
Due date:
% Done:

0%

Estimated time:

Description

If you click a tile with more than one unit on it, you get the unit selection dialog.

If you use the "Ready" or "Sentry" buttons on the dialog, they work, but they appear not to work within the dialog, as it does not show the change.

Similarly, if you use the buttons on a unit that is loaded on a transporter, not only does it not update, but the tree it is in collapses, and you have to open it again.

Less commonly, if you have the dialog open and something else happens to a unit you are looking at in it -- maybe it takes damage, or an allied unit leaves a transporter -- then that is not reflected.

The main difficulty is that attempting to refresh the dialog wipes the whole tree and rebuilds it. The packet handling code only attempts to trigger a refresh if a change happens to a unit that is focused or on the focus tile, but the unit selection dialog is frequently showing units that are not focused or on the focused tile.

I have rewritten the dialog so that when refreshing, it updates rows in the GtkTreeStore rather than wiping the whole store and rebuilding it. This solves all these problems. You can now observe a player, open the dialog, and see changes in it as they are triggered. It's not actually possible to open the dialog in global observer mode, but if that were enabled you could see the state of all the units in it live.


Files

Actions

Also available in: Atom PDF