[bugfix]: properly update song when restoring queue
This commit is contained in:
parent
9923c021fa
commit
b41a1a8b15
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ import '@ag-grid-community/styles/ag-grid.css';
|
|||
import { useDiscordRpc } from '/@/renderer/features/discord-rpc/use-discord-rpc';
|
||||
import i18n from '/@/i18n/i18n';
|
||||
import { useServerVersion } from '/@/renderer/hooks/use-server-version';
|
||||
import { updateSong } from '/@/renderer/features/player/update-remote-song';
|
||||
|
||||
ModuleRegistry.registerModules([ClientSideRowModelModule, InfiniteRowModelModule]);
|
||||
|
||||
|
@ -163,6 +164,7 @@ export const App = () => {
|
|||
if (playbackType === PlaybackType.LOCAL) {
|
||||
mpvPlayer!.setQueue(playerData, true);
|
||||
}
|
||||
updateSong(playerData.current.song);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue