electron-store applied
This commit is contained in:
parent
1a7be252a0
commit
59d7de2151
2 changed files with 19 additions and 63 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue