Show the anchor grid square's name in the scout flight row, not just bearing
This commit is contained in:
parent
2ac133ae3e
commit
d37c109cda
@ -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_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:
|
||||
label.add_css_class("dim-label")
|
||||
box.append(label)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user