Fix mpv sample rate setting

- Fix default input value
- Disable property on 0 value
This commit is contained in:
jeffvli 2023-05-17 17:25:20 -07:00
parent 48ef7a987f
commit e45252d16c
2 changed files with 10 additions and 8 deletions

View file

@ -127,7 +127,7 @@ const initialState: SettingsState = {
fontContent: 'Poppins',
playButtonBehavior: Play.NOW,
showQueueDrawerButton: false,
sideQueueType: 'sideDrawerQueue',
sideQueueType: 'sideQueue',
skipButtons: {
enabled: false,
skipBackwardSeconds: 5,
@ -168,7 +168,7 @@ const initialState: SettingsState = {
mpvProperties: {
audioExclusiveMode: 'no',
audioFormat: undefined,
audioSampleRateHz: undefined,
audioSampleRateHz: 0,
gaplessAudio: 'weak',
replayGainClip: true,
replayGainFallbackDB: undefined,
@ -309,7 +309,7 @@ const initialState: SettingsState = {
disableAutoUpdate: false,
exitToTray: false,
minimizeToTray: false,
windowBarStyle: Platform.WEB,
windowBarStyle: isElectron() ? Platform.WINDOWS : Platform.WEB,
},
};