allow no player
This commit is contained in:
parent
cb5d4fd76d
commit
41cb757b04
1 changed files with 4 additions and 0 deletions
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue