mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
refactor(tracker): shorten the names of model.PlayFrom... methods
This commit is contained in:
parent
a6bb5c2afc
commit
59c04ed4a1
@ -149,16 +149,16 @@ func (t *Tracker) KeyEvent(e key.Event, gtx C) {
|
||||
t.RemoveUnused().Do()
|
||||
case "PlayCurrentPosFollow":
|
||||
t.NoteTracking().Bool().Set(true)
|
||||
t.PlayFromCurrentPosition().Do()
|
||||
t.PlayCurrentPos().Do()
|
||||
case "PlayCurrentPosUnfollow":
|
||||
t.NoteTracking().Bool().Set(false)
|
||||
t.PlayFromCurrentPosition().Do()
|
||||
t.PlayCurrentPos().Do()
|
||||
case "PlaySongStartFollow":
|
||||
t.NoteTracking().Bool().Set(true)
|
||||
t.PlayFromSongStart().Do()
|
||||
t.PlaySongStart().Do()
|
||||
case "PlaySongStartUnfollow":
|
||||
t.NoteTracking().Bool().Set(false)
|
||||
t.PlayFromSongStart().Do()
|
||||
t.PlaySongStart().Do()
|
||||
case "PlaySelectedFollow":
|
||||
t.NoteTracking().Bool().Set(true)
|
||||
t.PlaySelected().Do()
|
||||
|
@ -64,7 +64,7 @@ func NewSongPanel(model *tracker.Model) *SongPanel {
|
||||
RecordBtn: NewBoolClickable(model.IsRecording().Bool()),
|
||||
NoteTracking: NewBoolClickable(model.NoteTracking().Bool()),
|
||||
PlayingBtn: NewBoolClickable(model.Playing().Bool()),
|
||||
RewindBtn: NewActionClickable(model.PlayFromSongStart()),
|
||||
RewindBtn: NewActionClickable(model.PlaySongStart()),
|
||||
}
|
||||
ret.fileMenuItems = []MenuItem{
|
||||
{IconBytes: icons.ContentClear, Text: "New Song", ShortcutText: keyActionMap["NewSong"], Doer: model.NewSong()},
|
||||
|
Reference in New Issue
Block a user