fix(tracker/gioui): changing a hex played the previous value

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-10-15 13:07:24 +03:00
parent 08386323ed
commit 04ca0a3f6e
2 changed files with 3 additions and 1 deletions

View File

@ -329,8 +329,8 @@ func (te *NoteEditor) command(t *Tracker, e key.Event) {
var n byte
if t.Model.Notes().Effect(te.scrollTable.Table.Cursor().X) {
if nibbleValue, err := strconv.ParseInt(string(e.Name), 16, 8); err == nil {
n = t.Model.Notes().Value(te.scrollTable.Table.Cursor())
t.Model.Notes().FillNibble(byte(nibbleValue), t.Model.Notes().LowNibble())
n = t.Model.Notes().Value(te.scrollTable.Table.Cursor())
goto validNote
}
} else {