move to subfolder
This commit is contained in:
parent
2852735d70
commit
e75c86e056
3 changed files with 5 additions and 4 deletions
|
|
@ -1,29 +0,0 @@
|
|||
import Quickshell
|
||||
import Quickshell.Services.Mpris
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property int currentIndex: 0
|
||||
|
||||
implicitWidth: childrenRect.width
|
||||
implicitHeight: childrenRect.height
|
||||
|
||||
Repeater {
|
||||
id: players
|
||||
model: Mpris.players.values.filter(item => item != null)
|
||||
|
||||
Player {
|
||||
|
||||
visible: index === root.currentIndex && modelData.canControl
|
||||
|
||||
onNextPlayer: {
|
||||
currentIndex = (currentIndex + 1) % players.count;
|
||||
}
|
||||
onPreviousPlayer: {
|
||||
currentIndex = (currentIndex - 1 + players.count) % players.count;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue