fix(tracker): notify player when recovery file is loaded

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2023-10-19 10:59:07 +03:00
parent 15a340317f
commit ff4155a08e

View File

@ -127,6 +127,9 @@ func NewModel(modelMessages chan<- interface{}, playerMessages <-chan PlayerMess
if recoveryFilePath != "" {
if bytes2, err := os.ReadFile(ret.d.RecoveryFilePath); err == nil {
json.Unmarshal(bytes2, &ret.d)
ret.notifyPatchChange()
ret.notifySamplesPerRowChange()
ret.notifyScoreChange()
}
}
return ret