mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
mediacontrolwidget: make playerItem loadable
This commit is contained in:
parent
443662d2fd
commit
1ebd1ecefc
1 changed files with 90 additions and 84 deletions
|
|
@ -62,7 +62,12 @@ Item {
|
||||||
Repeater {
|
Repeater {
|
||||||
model: mpris2Source.mprisSourcesModel
|
model: mpris2Source.mprisSourcesModel
|
||||||
|
|
||||||
delegate: Components.BaseItem {
|
delegate: Loader {
|
||||||
|
active: modelData
|
||||||
|
|
||||||
|
asynchronous: true
|
||||||
|
|
||||||
|
sourceComponent: Components.BaseItem {
|
||||||
id: playerItem
|
id: playerItem
|
||||||
|
|
||||||
property string source: modelData.source
|
property string source: modelData.source
|
||||||
|
|
@ -166,3 +171,4 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue