diff --git a/Modules/ControlCenter/Cards/MediaCard.qml b/Modules/ControlCenter/Cards/MediaCard.qml index f5fa1889..5e4ad4f8 100644 --- a/Modules/ControlCenter/Cards/MediaCard.qml +++ b/Modules/ControlCenter/Cards/MediaCard.qml @@ -32,12 +32,12 @@ NBox { color: Color.mPrimary Layout.alignment: Qt.AlignHCenter } + // NText { // text: "No media player detected" // color: Color.mOnSurfaceVariant // Layout.alignment: Qt.AlignHCenter // } - Item { Layout.fillWidth: true Layout.fillHeight: true @@ -65,7 +65,7 @@ NBox { RowLayout { anchors.fill: parent spacing: Style.marginS * scaling - + NIcon { icon: "caret-down" font.pointSize: Style.fontSizeXXL * scaling @@ -92,12 +92,12 @@ NBox { var players = MediaService.getAvailablePlayers() for (var i = 0; i < players.length; i++) { menuItems.push({ - label: players[i].identity, - action: i.toString(), - icon: "disc", - enabled: true, - visible: true - }) + "label": players[i].identity, + "action": i.toString(), + "icon": "disc", + "enabled": true, + "visible": true + }) } playerContextMenu.model = menuItems playerContextMenu.openAtItem(playerSelectorButton, playerSelectorButton.width - playerContextMenu.width, playerSelectorButton.height) @@ -109,7 +109,7 @@ NBox { parent: root width: 200 * scaling - onTriggered: function(action) { + onTriggered: function (action) { var index = parseInt(action) if (!isNaN(index)) { MediaService.selectedPlayerIndex = index @@ -342,4 +342,4 @@ NBox { } } } -} \ No newline at end of file +} diff --git a/Services/BarService.qml b/Services/BarService.qml index 96c5f2f1..a459dee0 100644 --- a/Services/BarService.qml +++ b/Services/BarService.qml @@ -18,7 +18,7 @@ Singleton { onTriggered: { hasAudioVisualizer = false const widgets = getAllWidgetInstances("MediaMini") - for(var i=0; i