that was bad
This commit is contained in:
parent
2827dfb36d
commit
3e3c38a25f
3 changed files with 10 additions and 6 deletions
|
@ -829,6 +829,12 @@ const app = new Vue({
|
|||
|
||||
MusicKit.getInstance().videoContainerElement = document.getElementById("apple-music-video-player")
|
||||
|
||||
ipcRenderer.on('lastfm:authenticated', (_e, session) => {
|
||||
app.cfg.lastfm.username = session.username
|
||||
app.cfg.lastfm.key = session.key
|
||||
app.cfg.lastfm.enabled = true
|
||||
})
|
||||
|
||||
ipcRenderer.on('theme-update', async (event, arg) => {
|
||||
await less.refresh(true, true, true)
|
||||
self.setTheme(self.cfg.visual.theme, true)
|
||||
|
|
|
@ -1470,6 +1470,9 @@
|
|||
ipcRenderer.send('reloadRPC')
|
||||
},
|
||||
lfmDisconnect() {
|
||||
app.cfg.lastfm.enabled = false;
|
||||
app.cfg.lastfm.username = "";
|
||||
app.cfg.lastfm.key = "";
|
||||
ipcRenderer.send('lastfm:disconnect');
|
||||
},
|
||||
async lfmAuthorize(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue