feat(tracker): copy instrument to & paste from clipboard

Closes #25
This commit is contained in:
vsariola
2021-02-16 21:43:39 +02:00
parent 088bbc6c58
commit 09a9f072cc
3 changed files with 39 additions and 2 deletions

View File

@ -24,7 +24,7 @@ func (t *Tracker) Run(w *app.Window) error {
w.Invalidate()
}
case clipboard.Event:
err := t.UnmarshalSong([]byte(e.Text))
err := t.UnmarshalContent([]byte(e.Text))
if err == nil {
w.Invalidate()
}