mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 20:40:15 +02:00
fix(remote): proper image when mpris and remote interleave
This commit is contained in:
@@ -620,8 +620,11 @@ ipcMain.on('update-playback', (_event, status: PlayerStatus) => {
|
||||
broadcast({ data: status, event: 'playback' });
|
||||
});
|
||||
|
||||
ipcMain.on('update-song', (_event, song: QueueSong | undefined) => {
|
||||
ipcMain.on('update-song', (_event, song: QueueSong | undefined, imageUrl?: null | string) => {
|
||||
const songChanged = song?.id !== currentState.song?.id;
|
||||
if (song) {
|
||||
song.imageUrl = imageUrl || null;
|
||||
}
|
||||
currentState.song = song;
|
||||
|
||||
if (songChanged) {
|
||||
|
||||
Reference in New Issue
Block a user