electron-store applied

This commit is contained in:
booploops 2021-12-24 21:28:15 -08:00
parent 1a7be252a0
commit 59d7de2151
2 changed files with 19 additions and 63 deletions

View file

@ -321,7 +321,7 @@ const app = new Vue({
}
// Set the volume
ipcRenderer.invoke('getStoreValue', 'volume').then((value) => {
ipcRenderer.invoke('getStoreValue', 'general.volume').then((value) => {
self.mk.volume = value
})
@ -431,7 +431,7 @@ const app = new Vue({
})
this.mk.addEventListener(MusicKit.Events.playbackVolumeDidChange, (_a) => {
ipcRenderer.invoke('setStoreValue', 'volume', this.mk.volume)
ipcRenderer.invoke('setStoreValue', 'general.volume', this.mk.volume)
})
this.refreshPlaylists()