Add favorite hotkey options (#326)

* Add favorite hotkey options

* Update wording

---------

Co-authored-by: Jeff <42182408+jeffvli@users.noreply.github.com>
This commit is contained in:
Martin Pauli
2023-10-28 03:22:16 +02:00
committed by GitHub
parent ac84088c69
commit 7a580c2c65
4 changed files with 68 additions and 15 deletions
+9
View File
@@ -827,6 +827,15 @@ export const usePlayerStore = create<PlayerSlice>()(
});
}
const previousSongId = get().queue.previousNode?.id;
if (previousSongId && ids.includes(previousSongId)) {
set((state) => {
if (state.queue.previousNode) {
state.queue.previousNode.userFavorite = favorite;
}
});
}
return foundUniqueIds;
},
setMuted: (muted: boolean) => {