allow no player

This commit is contained in:
Benjamin Palko 2025-04-06 10:06:29 -04:00
parent cb5d4fd76d
commit 41cb757b04

View file

@ -35,6 +35,10 @@ const Mpris = function () {
derive([players, activeIndex], (players, index) => {
const activePlayer = players[index];
if (!activePlayer) {
return <></>;
}
return (
<button
cursor={Gdk.Cursor.new_from_name("pointer", null)}