mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 02:04:45 +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 {
|
||||
model: mpris2Source.mprisSourcesModel
|
||||
|
||||
delegate: Components.BaseItem {
|
||||
delegate: Loader {
|
||||
active: modelData
|
||||
|
||||
asynchronous: true
|
||||
|
||||
sourceComponent: Components.BaseItem {
|
||||
id: playerItem
|
||||
|
||||
property string source: modelData.source
|
||||
|
|
@ -165,4 +170,5 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue