From 9c39259de4e8c7ae98314190e51c0d951812a159 Mon Sep 17 00:00:00 2001 From: lucy Date: Sun, 8 Mar 2026 13:48:00 +0100 Subject: [PATCH] add check if spotify is ready to avoid warning in logs --- modules/Bar/MPris.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/Bar/MPris.qml b/modules/Bar/MPris.qml index e0ba464..d12ee8c 100644 --- a/modules/Bar/MPris.qml +++ b/modules/Bar/MPris.qml @@ -16,7 +16,6 @@ Rectangle { function getSpotify() { for (var i = 0; i < Mpris.players.values.length; i++) { - console.log(Mpris.players.values[i].identity); if (Mpris.players.values[i].identity == "spotify" || "Spotify") { return Mpris.players.values[i]; } @@ -26,6 +25,6 @@ Rectangle { CText { id: playingSong anchors.centerIn: parent - text: root.spotify.trackTitle + " - " + root.spotify.trackArtist + text: root.spotify == null ? "" : root.spotify.trackTitle + " - " + root.spotify.trackArtist } }