fix(ags player): fix track title not updating

This commit is contained in:
matt1432 2023-10-02 17:35:48 -04:00
parent b220ff889c
commit 7184e752c2

View file

@ -62,7 +62,7 @@ export const TitleLabel = (player, params) => Label({
truncate: 'end', truncate: 'end',
justification: 'left', justification: 'left',
className: 'title', className: 'title',
binds: [['label', player, 'trackTitle']], binds: [['label', player, 'track-title']],
}); });
export const ArtistLabel = (player, params) => Label({ export const ArtistLabel = (player, params) => Label({
@ -72,9 +72,7 @@ export const ArtistLabel = (player, params) => Label({
truncate: 'end', truncate: 'end',
justification: 'left', justification: 'left',
className: 'artist', className: 'artist',
connections: [[player, label => { binds: [['label', player, 'track-artists', a => a.join(', ') || '']],
label.label = player.trackArtists.join(', ') || '';
}]],
}); });
export const PlayerIcon = (player, { symbolic = true, ...params } = {}) => { export const PlayerIcon = (player, { symbolic = true, ...params } = {}) => {