mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
widgets/mediacontrols: Fix base model reference
This commit is contained in:
parent
b625d38653
commit
348428035d
1 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue