mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 10:27:03 -04:00
LastFM: Remove EnableGameActivity Setting
This commit is contained in:
parent
aa1cee3080
commit
45b9824b11
2 changed files with 0 additions and 20 deletions
|
@ -160,11 +160,6 @@ const settings = definePluginSettings({
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
enableGameActivity: {
|
|
||||||
description: "Enable game activity for Stats.fm", // Credit to LastfmPresence for this setting
|
|
||||||
type: OptionType.BOOLEAN,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
statusName: {
|
statusName: {
|
||||||
description: "Custom status text",
|
description: "Custom status text",
|
||||||
type: OptionType.STRING,
|
type: OptionType.STRING,
|
||||||
|
@ -275,11 +270,6 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
|
|
||||||
const trackData = json.item.track;
|
const trackData = json.item.track;
|
||||||
if (settings.store.enableGameActivity && trackData) {
|
|
||||||
ShowCurrentGame.updateSetting(true);
|
|
||||||
} else if (settings.store.enableGameActivity) {
|
|
||||||
ShowCurrentGame.updateSetting(false);
|
|
||||||
}
|
|
||||||
if (!trackData) return null;
|
if (!trackData) return null;
|
||||||
return {
|
return {
|
||||||
name: trackData.name || "Unknown",
|
name: trackData.name || "Unknown",
|
||||||
|
|
|
@ -132,11 +132,6 @@ const settings = definePluginSettings({
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
enableGameActivity: {
|
|
||||||
description: "Enable game activity for last.fm",
|
|
||||||
type: OptionType.BOOLEAN,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
statusName: {
|
statusName: {
|
||||||
description: "custom status text",
|
description: "custom status text",
|
||||||
type: OptionType.STRING,
|
type: OptionType.STRING,
|
||||||
|
@ -306,11 +301,6 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
|
|
||||||
const trackData = await this.fetchTrackData();
|
const trackData = await this.fetchTrackData();
|
||||||
if (settings.store.enableGameActivity && trackData) {
|
|
||||||
ShowCurrentGame.updateSetting(true);
|
|
||||||
} else if (settings.store.enableGameActivity) {
|
|
||||||
ShowCurrentGame.updateSetting(false);
|
|
||||||
}
|
|
||||||
if (!trackData) return null;
|
if (!trackData) return null;
|
||||||
|
|
||||||
const largeImage = this.getLargeImage(trackData);
|
const largeImage = this.getLargeImage(trackData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue