Moved volume to audio.volume

This commit is contained in:
Core 2022-01-10 23:27:08 +00:00
parent f87f4ec5e5
commit 88a4fcd380
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
2 changed files with 5 additions and 5 deletions

View file

@ -9,14 +9,14 @@ export class ConfigStore {
"close_behavior": 0, // 0 = close, 1 = minimize, 2 = minimize to tray
"startup_behavior": 0, // 0 = nothing, 1 = open on startup
"discord_rpc": 1, // 0 = disabled, 1 = enabled as Cider, 2 = enabled as Apple Music
"discordClearActivityOnPause": 1, // 0 = disabled, 1 = enabled
"volume": 1
"discordClearActivityOnPause": 1 // 0 = disabled, 1 = enabled
},
"home": {
"followedArtists": [],
"favoriteItems": []
},
"audio": {
"volume": 1,
"quality": "990",
"seamless_audio": true,
"normalization": false,

View file

@ -449,8 +449,8 @@ const app = new Vue({
}
MusicKitInterop.init()
// Set the volume
this.mk.volume = this.cfg.general.volume
// ipcRenderer.invoke('getStoreValue', 'general.volume').then((value) => {
this.mk.volume = this.cfg.audio.volume
// ipcRenderer.invoke('getStoreValue', 'audio.volume').then((value) => {
// self.mk.volume = value
// })
@ -618,7 +618,7 @@ const app = new Vue({
this.mk.addEventListener(MusicKit.Events.playbackVolumeDidChange, (_a) => {
this.cfg.general.volume = this.mk.volume
this.cfg.audio.volume = this.mk.volume
})
this.refreshPlaylists()