Moved volume to audio.volume
This commit is contained in:
parent
f87f4ec5e5
commit
88a4fcd380
2 changed files with 5 additions and 5 deletions
|
@ -9,14 +9,14 @@ export class ConfigStore {
|
||||||
"close_behavior": 0, // 0 = close, 1 = minimize, 2 = minimize to tray
|
"close_behavior": 0, // 0 = close, 1 = minimize, 2 = minimize to tray
|
||||||
"startup_behavior": 0, // 0 = nothing, 1 = open on startup
|
"startup_behavior": 0, // 0 = nothing, 1 = open on startup
|
||||||
"discord_rpc": 1, // 0 = disabled, 1 = enabled as Cider, 2 = enabled as Apple Music
|
"discord_rpc": 1, // 0 = disabled, 1 = enabled as Cider, 2 = enabled as Apple Music
|
||||||
"discordClearActivityOnPause": 1, // 0 = disabled, 1 = enabled
|
"discordClearActivityOnPause": 1 // 0 = disabled, 1 = enabled
|
||||||
"volume": 1
|
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"followedArtists": [],
|
"followedArtists": [],
|
||||||
"favoriteItems": []
|
"favoriteItems": []
|
||||||
},
|
},
|
||||||
"audio": {
|
"audio": {
|
||||||
|
"volume": 1,
|
||||||
"quality": "990",
|
"quality": "990",
|
||||||
"seamless_audio": true,
|
"seamless_audio": true,
|
||||||
"normalization": false,
|
"normalization": false,
|
||||||
|
|
|
@ -449,8 +449,8 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
MusicKitInterop.init()
|
MusicKitInterop.init()
|
||||||
// Set the volume
|
// Set the volume
|
||||||
this.mk.volume = this.cfg.general.volume
|
this.mk.volume = this.cfg.audio.volume
|
||||||
// ipcRenderer.invoke('getStoreValue', 'general.volume').then((value) => {
|
// ipcRenderer.invoke('getStoreValue', 'audio.volume').then((value) => {
|
||||||
// self.mk.volume = value
|
// self.mk.volume = value
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
@ -618,7 +618,7 @@ const app = new Vue({
|
||||||
|
|
||||||
|
|
||||||
this.mk.addEventListener(MusicKit.Events.playbackVolumeDidChange, (_a) => {
|
this.mk.addEventListener(MusicKit.Events.playbackVolumeDidChange, (_a) => {
|
||||||
this.cfg.general.volume = this.mk.volume
|
this.cfg.audio.volume = this.mk.volume
|
||||||
})
|
})
|
||||||
|
|
||||||
this.refreshPlaylists()
|
this.refreshPlaylists()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue