Show the anchor grid square's name in the scout flight row, not just bearing

This commit is contained in:
Dominik Moritz Roth 2026-08-08 23:42:25 +02:00
parent 2ac133ae3e
commit d37c109cda

View File

@ -130,7 +130,12 @@ def _scout_flight_row(sf, *, on_replot, on_remove, on_toggle_hidden) -> Gtk.Widg
box.set_margin_start(8) box.set_margin_start(8)
box.set_margin_end(8) box.set_margin_end(8)
label = Gtk.Label(xalign=0, hexpand=True, label=f"{sf.name} (bearing {sf.bearing_deg:05.1f}°)") start_coord = solver.point_to_coord(sf.center)
grid_name = f"{start_coord.X}{start_coord.Y}" if start_coord is not None else "?"
label = Gtk.Label(
xalign=0, hexpand=True,
label=f"{sf.name} ({grid_name}, bearing {sf.bearing_deg:05.1f}°)",
)
if sf.hidden: if sf.hidden:
label.add_css_class("dim-label") label.add_css_class("dim-label")
box.append(label) box.append(label)