PlayerScreen sailfish: update player toises after tuner changed
This commit is contained in:
parent
024aa99be7
commit
08999a8d8d
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -123,6 +123,10 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
onTunerPlayingChanged: app.userPlaying = tunerPlaying
|
||||
|
||||
onStatusChanged: {
|
||||
if (status == PageStatus.Active) screen.update()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue