Optimisations
This commit is contained in:
parent
6085da0329
commit
544568c215
2 changed files with 14 additions and 12 deletions
|
@ -817,6 +817,19 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DiscordRPC Reload Return Event
|
||||||
|
* @author @coredev-uk
|
||||||
|
*/
|
||||||
|
ipcRenderer.on('rpcReloaded', (e, user) => {
|
||||||
|
if (user.username) {
|
||||||
|
app.notyf.success(app.stringTemplateParser(app.getLz("settings.option.connectivity.discordRPC.reconnectedToUser"), {
|
||||||
|
user: `${user.username}#${user.discriminator}`,
|
||||||
|
userid: user.id
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
ipcRenderer.on('SoundCheckTag', (event, tag) => {
|
ipcRenderer.on('SoundCheckTag', (event, tag) => {
|
||||||
// let replaygain = self.parseSCTagToRG(tag)
|
// let replaygain = self.parseSCTagToRG(tag)
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1466,18 +1466,7 @@
|
||||||
ipcRenderer.send('cc-logout')
|
ipcRenderer.send('cc-logout')
|
||||||
},
|
},
|
||||||
reloadDiscordRPC() {
|
reloadDiscordRPC() {
|
||||||
ipcRenderer.invoke('reloadRPC').catch((err) => {
|
ipcRenderer.send('reloadRPC')
|
||||||
console.error(err)
|
|
||||||
})
|
|
||||||
|
|
||||||
ipcRenderer.on('rpcReloaded', (e, user) => {
|
|
||||||
if (user.username) {
|
|
||||||
app.notyf.success(app.stringTemplateParser(app.getLz("settings.option.connectivity.discordRPC.reconnectedToUser"), {
|
|
||||||
user: `${user.username}#${user.discriminator}`,
|
|
||||||
userid: user.id
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue