discordrpc now reloads/clears activity with setting changes
This commit is contained in:
parent
f8e37029ac
commit
a3ca0b09f4
4 changed files with 42 additions and 27 deletions
|
@ -256,6 +256,12 @@ const app = new Vue({
|
|||
},
|
||||
deep: true,
|
||||
},
|
||||
'cfg.connectivity.discord_rpc.enabled'(newValue) {
|
||||
ipcRenderer.send("discordrpc:reload", newValue)
|
||||
},
|
||||
'mk.privateEnabled'(newValue) {
|
||||
ipcRenderer.send("onPrivacyModeChange", newValue);
|
||||
},
|
||||
page: () => {
|
||||
document.getElementById("app-content").scrollTo(0, 0);
|
||||
app.resetState();
|
||||
|
@ -4115,7 +4121,7 @@ const app = new Vue({
|
|||
if (this.mk.nowPlayingItem._assets[0].artworkURL) {
|
||||
this.currentArtUrl = this.mk.nowPlayingItem._assets[0].artworkURL;
|
||||
}
|
||||
ipcRenderer.send("updateRPCImage", this.currentArtUrl ?? "");
|
||||
ipcRenderer.send("discordrpc:updateImage", this.currentArtUrl ?? "");
|
||||
try {
|
||||
// document.querySelector('.app-playback-controls .artwork').style.setProperty('--artwork', `url("${this.currentArtUrl}")`);
|
||||
} catch (e) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue