From 3c34125044c4ee452ac23672cc3e7bf580ea5fb7 Mon Sep 17 00:00:00 2001 From: coredev-uk Date: Wed, 31 Aug 2022 11:19:44 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/main/plugins/discordrpc.ts | 5 ++--- src/renderer/main/vueapp.js | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/plugins/discordrpc.ts b/src/main/plugins/discordrpc.ts index b8d94d8c..c8d797b0 100644 --- a/src/main/plugins/discordrpc.ts +++ b/src/main/plugins/discordrpc.ts @@ -105,7 +105,7 @@ export default class DiscordRPC { this._client.destroy(); } - if (!this._utils.getStoreValue("connectivity.discord_rpc.enabled")) return + if (!this._utils.getStoreValue("connectivity.discord_rpc.enabled")) return; this._client .endlessLogin({ clientId: this._utils.getStoreValue("connectivity.discord_rpc.client") === "Cider" ? "911790844204437504" : "886578863147192350", @@ -219,11 +219,10 @@ export default class DiscordRPC { return; } - if (!attributes.status && this._utils.getStoreValue("connectivity.discord_rpc.clear_on_pause")) { this._client.clearActivity(); } else if (activity && this._activityCache !== activity) { - if (this._utils.getStoreValue("general.privateEnabled")) return + if (this._utils.getStoreValue("general.privateEnabled")) return; this._client.setActivity(activity); } this._activityCache = activity; diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index d06b8126..ca0b9509 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -256,10 +256,10 @@ const app = new Vue({ }, deep: true, }, - 'cfg.connectivity.discord_rpc.enabled'(newValue) { - ipcRenderer.send("discordrpc:reload", newValue) + "cfg.connectivity.discord_rpc.enabled"(newValue) { + ipcRenderer.send("discordrpc:reload", newValue); }, - 'mk.privateEnabled'(newValue) { + "mk.privateEnabled"(newValue) { ipcRenderer.send("onPrivacyModeChange", newValue); }, page: () => {