From 49308bee1a400085a5c60e0b2bc3858188633366 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 21 Jan 2026 15:38:17 +0100 Subject: [PATCH] fix issues with spotify detection --- modules/bar/Bar.qml | 1 - modules/bar/Mpris.qml | 25 ++++++++++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index fedddaa..f5460ff 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -6,7 +6,6 @@ import qs.settings Variants { model: Quickshell.screens - property var radius: root.container.radius delegate: PanelWindow { id: root diff --git a/modules/bar/Mpris.qml b/modules/bar/Mpris.qml index 88c271c..63869d3 100644 --- a/modules/bar/Mpris.qml +++ b/modules/bar/Mpris.qml @@ -25,20 +25,19 @@ Rectangle { } anchors.horizontalCenter: parent.horizontalCenter implicitWidth: statusRow.implicitWidth - - Row { - id: statusRow - property var combinedText: root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " - property var status: !root.spotify.isPlaying ? "play_arrow" : "pause" - CustomText { - id: mprisText - text: root.spotify != null ? parent.combinedText : "" - } - CustomIcon { - id: mprisStatus - text: parent.status - } + Row { + id: statusRow + property var combinedText: root.spotify != null ? root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " : "" + property var status: root.spotify != null ? !root.spotify.isPlaying ? "play_arrow" : "pause" : "" + CustomText { + id: mprisText + text: root.spotify != null ? parent.combinedText : "" + } + CustomIcon { + id: mprisStatus + text: root.spotify != null ? parent.status : "" + } } } MouseArea {