chore: Prettified Code
[ci skip]
This commit is contained in:
parent
a3ca0b09f4
commit
3c34125044
2 changed files with 5 additions and 6 deletions
|
@ -105,7 +105,7 @@ export default class DiscordRPC {
|
||||||
this._client.destroy();
|
this._client.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this._utils.getStoreValue("connectivity.discord_rpc.enabled")) return
|
if (!this._utils.getStoreValue("connectivity.discord_rpc.enabled")) return;
|
||||||
this._client
|
this._client
|
||||||
.endlessLogin({
|
.endlessLogin({
|
||||||
clientId: this._utils.getStoreValue("connectivity.discord_rpc.client") === "Cider" ? "911790844204437504" : "886578863147192350",
|
clientId: this._utils.getStoreValue("connectivity.discord_rpc.client") === "Cider" ? "911790844204437504" : "886578863147192350",
|
||||||
|
@ -219,11 +219,10 @@ export default class DiscordRPC {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!attributes.status && this._utils.getStoreValue("connectivity.discord_rpc.clear_on_pause")) {
|
if (!attributes.status && this._utils.getStoreValue("connectivity.discord_rpc.clear_on_pause")) {
|
||||||
this._client.clearActivity();
|
this._client.clearActivity();
|
||||||
} else if (activity && this._activityCache !== activity) {
|
} 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._client.setActivity(activity);
|
||||||
}
|
}
|
||||||
this._activityCache = activity;
|
this._activityCache = activity;
|
||||||
|
|
|
@ -256,10 +256,10 @@ const app = new Vue({
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
'cfg.connectivity.discord_rpc.enabled'(newValue) {
|
"cfg.connectivity.discord_rpc.enabled"(newValue) {
|
||||||
ipcRenderer.send("discordrpc:reload", newValue)
|
ipcRenderer.send("discordrpc:reload", newValue);
|
||||||
},
|
},
|
||||||
'mk.privateEnabled'(newValue) {
|
"mk.privateEnabled"(newValue) {
|
||||||
ipcRenderer.send("onPrivacyModeChange", newValue);
|
ipcRenderer.send("onPrivacyModeChange", newValue);
|
||||||
},
|
},
|
||||||
page: () => {
|
page: () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue