fix(ags player): fix track title not updating
This commit is contained in:
parent
b220ff889c
commit
7184e752c2
1 changed files with 2 additions and 4 deletions
|
@ -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 } = {}) => {
|
||||||
|
|
Loading…
Reference in a new issue