mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
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:
parent
ac84088c69
commit
7a580c2c65
4 changed files with 68 additions and 15 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue