fix issues with spotify detection

This commit is contained in:
lucy 2026-01-21 15:38:17 +01:00
parent 4bd18b7adb
commit 49308bee1a
2 changed files with 12 additions and 14 deletions

View File

@ -6,7 +6,6 @@ import qs.settings
Variants { Variants {
model: Quickshell.screens model: Quickshell.screens
property var radius: root.container.radius
delegate: PanelWindow { delegate: PanelWindow {
id: root id: root

View File

@ -27,18 +27,17 @@ Rectangle {
implicitWidth: statusRow.implicitWidth implicitWidth: statusRow.implicitWidth
Row { Row {
id: statusRow id: statusRow
property var combinedText: root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " property var combinedText: root.spotify != null ? root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " : ""
property var status: !root.spotify.isPlaying ? "play_arrow" : "pause" property var status: root.spotify != null ? !root.spotify.isPlaying ? "play_arrow" : "pause" : ""
CustomText { CustomText {
id: mprisText id: mprisText
text: root.spotify != null ? parent.combinedText : "" text: root.spotify != null ? parent.combinedText : ""
} }
CustomIcon { CustomIcon {
id: mprisStatus id: mprisStatus
text: parent.status text: root.spotify != null ? parent.status : ""
} }
} }
} }
MouseArea { MouseArea {