LastfmRichPresence: Add an option to hide the Last.fm logo (#2189)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
76de8c424e
commit
1afa185f57
1 changed files with 9 additions and 2 deletions
|
@ -170,6 +170,11 @@ const settings = definePluginSettings({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
showLastFmLogo: {
|
||||||
|
description: "show the Last.fm logo by the album cover",
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
default: true,
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
|
@ -276,8 +281,10 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
large_image: await getApplicationAsset(largeImage),
|
large_image: await getApplicationAsset(largeImage),
|
||||||
large_text: trackData.album || undefined,
|
large_text: trackData.album || undefined,
|
||||||
small_image: await getApplicationAsset("lastfm-small"),
|
...(settings.store.showLastFmLogo && {
|
||||||
small_text: "Last.fm",
|
small_image: await getApplicationAsset("lastfm-small"),
|
||||||
|
small_text: "Last.fm"
|
||||||
|
}),
|
||||||
} : {
|
} : {
|
||||||
large_image: await getApplicationAsset("lastfm-large"),
|
large_image: await getApplicationAsset("lastfm-large"),
|
||||||
large_text: trackData.album || undefined,
|
large_text: trackData.album || undefined,
|
||||||
|
|
Loading…
Reference in a new issue