From 348428035d9880781e01c21b5b2f7cb3e6dfdee3 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 11 Mar 2024 00:55:37 -0400 Subject: [PATCH] widgets/mediacontrols: Fix base model reference --- .../qml/widgets/mediacontrols/MediaControlsSource.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/mobileshell/qml/widgets/mediacontrols/MediaControlsSource.qml b/components/mobileshell/qml/widgets/mediacontrols/MediaControlsSource.qml index 38b66003..bb03b22d 100644 --- a/components/mobileshell/qml/widgets/mediacontrols/MediaControlsSource.qml +++ b/components/mobileshell/qml/widgets/mediacontrols/MediaControlsSource.qml @@ -26,15 +26,15 @@ QtObject { } function setIndex(index) { - mpris2Model.currentIndex = index; + baseMpris2Model.currentIndex = index + 1; // account for first row being gone (multiplexer) } function goPrevious() { - mpris2Model.currentPlayer.Previous(); + baseMpris2Model.currentPlayer.Previous(); } function goNext() { - mpris2Model.currentPlayer.Next(); + baseMpris2Model.currentPlayer.Next(); } function playPause() { - mpris2Model.currentPlayer.PlayPause(); + baseMpris2Model.currentPlayer.PlayPause(); } }