mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 21:44:38 -04:00
refactor(tracker/gioui): use enums (iota) for EditorEvent
This commit is contained in:
parent
beef8fe1e0
commit
0ea20ea5bf
@ -160,11 +160,7 @@ func (pe *UnitEditor) layoutFooter(gtx C, t *Tracker) D {
|
||||
return hintText.Layout(gtx)
|
||||
}),
|
||||
layout.Flexed(1, func(gtx C) D {
|
||||
for {
|
||||
_, ok := pe.commentEditor.Update(gtx, t.UnitComment())
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
for pe.commentEditor.Update(gtx, t.UnitComment()) != EditorEventNone {
|
||||
t.InstrumentEditor.Focus()
|
||||
}
|
||||
return pe.commentEditor.Layout(gtx, t.UnitComment(), t.Theme, &t.Theme.InstrumentEditor.UnitComment, "---")
|
||||
|
Reference in New Issue
Block a user