From 12753b6823e85e7c9428725106c7f694205a6954 Mon Sep 17 00:00:00 2001 From: lucy Date: Mon, 19 Jan 2026 17:04:51 +0100 Subject: [PATCH] add optimizations suggested by gemini --- modules/bar/Mpris.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bar/Mpris.qml b/modules/bar/Mpris.qml index a3a4cd4..7d57674 100644 --- a/modules/bar/Mpris.qml +++ b/modules/bar/Mpris.qml @@ -6,7 +6,7 @@ import qs.reusables Rectangle { id: container - visible: root.getSpotify() != null + visible: root.spotify != null radius: implicitHeight / 2 color: Colors.color0 anchors.verticalCenter: parent.verticalCenter @@ -19,7 +19,7 @@ Rectangle { property var spotify: root.getSpotify() function getSpotify() { for (let i = 0; i < Mpris.players.values.length; i++) { - if (Mpris.players.values[i].identity === "Spotify") { + if (Mpris.players.values[i].identity.toLowerCase() === "spotify") { return Mpris.players.values[i]; } }