PlayerScreen sailfish: update player toises after tuner changed

This commit is contained in:
Louis-Joseph Fournier 2016-01-14 17:09:48 +01:00
parent 024aa99be7
commit 08999a8d8d
2 changed files with 8 additions and 0 deletions

View file

@ -173,10 +173,14 @@ Item {
/// update toise indexes if tuner note and octave changed from exterior
function update() {
console.log("update")
toise.flik_enable = false
toise.note = tuner.note
toise.octave = tuner.octave
toise_octave.index = tuner.octave
toise.index = tuner.note + 12 * tuner.octave
toise.updateFlickable()
toise_octave.updateFlickable()
toise.flik_enable = true
}

View file

@ -123,6 +123,10 @@ ApplicationWindow {
}
}
onTunerPlayingChanged: app.userPlaying = tunerPlaying
onStatusChanged: {
if (status == PageStatus.Active) screen.update()
}
}
}