diff --git a/ui/inspector.gd b/ui/inspector.gd index d354801..8d4d72c 100644 --- a/ui/inspector.gd +++ b/ui/inspector.gd @@ -107,8 +107,10 @@ func clear() -> void: func _mark_cards() -> void: if main == null: return - var tid := str(selection.get("tid", "")) - var eid := str(selection.get("eid", "")) if str(selection.get("kind", "")) == "result" else "" + var kind := str(selection.get("kind", "")) + # A selected thread is the selection itself; its source card is not. + var tid := str(selection.get("tid", "")) if kind != "pipe" else "" + var eid := str(selection.get("eid", "")) if kind == "result" else "" for c in main.cards.values(): var card := c as TableCard if card and card.has_method("set_selected_entry"):