mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-04 04:28:30 -04:00
refactor: unify media control calls to MprisController sync
This commit is contained in:
@@ -129,7 +129,7 @@ BasePill {
|
||||
if (deltaY > 0) {
|
||||
MprisController.previousOrRewind();
|
||||
} else {
|
||||
activePlayer.next();
|
||||
MprisController.next();
|
||||
}
|
||||
} else {
|
||||
scrollAccumulatorY += deltaY;
|
||||
@@ -137,7 +137,7 @@ BasePill {
|
||||
if (scrollAccumulatorY > 0) {
|
||||
MprisController.previousOrRewind();
|
||||
} else {
|
||||
activePlayer.next();
|
||||
MprisController.next();
|
||||
}
|
||||
scrollAccumulatorY = 0;
|
||||
}
|
||||
@@ -266,7 +266,7 @@ BasePill {
|
||||
} else if (mouse.button === Qt.MiddleButton) {
|
||||
MprisController.previousOrRewind();
|
||||
} else if (mouse.button === Qt.RightButton) {
|
||||
activePlayer.next();
|
||||
MprisController.next();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -532,7 +532,7 @@ BasePill {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
if (activePlayer) {
|
||||
activePlayer.next();
|
||||
MprisController.next();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user