mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-12 04:53:59 -05:00
Final Fixes
This commit is contained in:
parent
d1053c75e9
commit
eada6d00cd
1 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,7 @@ const updateAsync = findByCodeLazy("updateAsync", "status");
|
||||||
const settings = definePluginSettings({
|
const settings = definePluginSettings({
|
||||||
statusToSet: {
|
statusToSet: {
|
||||||
type: OptionType.SELECT,
|
type: OptionType.SELECT,
|
||||||
description: "Status set while playing a game",
|
description: "Status to set while playing a game",
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
label: "Online",
|
label: "Online",
|
||||||
|
@ -47,8 +47,7 @@ export default definePlugin({
|
||||||
runningGamesChange(event) {
|
runningGamesChange(event) {
|
||||||
let savedStatus = "";
|
let savedStatus = "";
|
||||||
if (event.games.length > 0) {
|
if (event.games.length > 0) {
|
||||||
const currentUser = UserStore.getCurrentUser();
|
const status = PresenceStore.getStatus(UserStore.getCurrentUser().id);
|
||||||
const status = PresenceStore.getStatus(currentUser.id);
|
|
||||||
savedStatus = status;
|
savedStatus = status;
|
||||||
updateAsync(settings.store.statusToSet);
|
updateAsync(settings.store.statusToSet);
|
||||||
} else if (event.games.length === 0) {
|
} else if (event.games.length === 0) {
|
||||||
|
|
Loading…
Reference in a new issue