Add workspace app icon side-effects and add wiki link for settings. (#387)

* Add side-effect for app icons for workspaces and udated mpris types.

* Add links to workspace icon toggles.

* Add subtitle
This commit is contained in:
Jas Singh
2024-10-28 00:03:28 -07:00
committed by GitHub
parent 4e2a774c7e
commit 5bc1c1e7d4
8 changed files with 90 additions and 30 deletions

View File

@@ -46,6 +46,9 @@ export const initializeActivePlayerHook = (): void => {
});
};
export const getPlayerInfo = (): MprisPlayer => {
export const getPlayerInfo = (): MprisPlayer | undefined => {
if (media.players.length === 0) {
return;
}
return media.players.find((p) => p.bus_name === curPlayer.value) || media.players[0];
};