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 {
model: Quickshell.screens
property var radius: root.container.radius
delegate: PanelWindow {
id: root

View File

@ -28,17 +28,16 @@ Rectangle {
Row {
id: statusRow
property var combinedText: root.spotify.trackArtist + " - " + root.spotify.trackTitle + " "
property var status: !root.spotify.isPlaying ? "play_arrow" : "pause"
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: parent.status
text: root.spotify != null ? parent.status : ""
}
}
}
MouseArea {