fix(tracker/gioui): if user clears unit search box, set unit to ""

This commit is contained in:
2025-06-20 19:10:10 +03:00
parent 4fa0e04788
commit 3881b8eb22
+2
View File
@@ -424,6 +424,8 @@ func (ie *InstrumentEditor) layoutUnitList(gtx C, t *Tracker) D {
break break
} }
} }
} else {
t.Units().SetSelectedType("")
} }
} }
ie.unitDragList.Focus() ie.unitDragList.Focus()