mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Add additional controls to playerbar
This commit is contained in:
parent
5ddd0872ef
commit
85bf910d65
3 changed files with 238 additions and 49 deletions
|
|
@ -659,6 +659,15 @@ export const usePlayerStore = create<PlayerSlice>()(
|
|||
}
|
||||
}
|
||||
|
||||
const currentSongId = get().current.song?.id;
|
||||
if (currentSongId && ids.includes(currentSongId)) {
|
||||
set((state) => {
|
||||
if (state.current.song) {
|
||||
state.current.song.userFavorite = favorite;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return foundUniqueIds;
|
||||
},
|
||||
setMuted: (muted: boolean) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue