diff --git a/qml/PlayerScreen.qml b/qml/PlayerScreen.qml index b61ca5f..f6cbd10 100644 --- a/qml/PlayerScreen.qml +++ b/qml/PlayerScreen.qml @@ -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 } diff --git a/qml/Sailfish.qml b/qml/Sailfish.qml index a31cd2c..679f387 100644 --- a/qml/Sailfish.qml +++ b/qml/Sailfish.qml @@ -123,6 +123,10 @@ ApplicationWindow { } } onTunerPlayingChanged: app.userPlaying = tunerPlaying + + onStatusChanged: { + if (status == PageStatus.Active) screen.update() + } } }