mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(tracker): notify player when recovery file is loaded
This commit is contained in:
parent
15a340317f
commit
ff4155a08e
@ -127,6 +127,9 @@ func NewModel(modelMessages chan<- interface{}, playerMessages <-chan PlayerMess
|
|||||||
if recoveryFilePath != "" {
|
if recoveryFilePath != "" {
|
||||||
if bytes2, err := os.ReadFile(ret.d.RecoveryFilePath); err == nil {
|
if bytes2, err := os.ReadFile(ret.d.RecoveryFilePath); err == nil {
|
||||||
json.Unmarshal(bytes2, &ret.d)
|
json.Unmarshal(bytes2, &ret.d)
|
||||||
|
ret.notifyPatchChange()
|
||||||
|
ret.notifySamplesPerRowChange()
|
||||||
|
ret.notifyScoreChange()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user