[bugfix]: update mpris volume when set by mpris

This commit is contained in:
Kendall Garner 2024-02-07 20:51:07 -08:00
parent 49cbef729b
commit 92478b5ca5
No known key found for this signature in database
GPG Key ID: 18D2767419676C87
2 changed files with 6 additions and 4 deletions

View File

@ -11,10 +11,10 @@
],
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true,
"source.organizeImports": false,
"source.formatDocument": true
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit",
"source.organizeImports": "never",
"source.formatDocument": "explicit"
},
"css.validate": true,
"less.validate": false,

View File

@ -70,6 +70,8 @@ mprisPlayer.on('volume', (vol: number) => {
getMainWindow()?.webContents.send('request-volume', {
volume,
});
mprisPlayer.volume = volume / 100;
});
mprisPlayer.on('shuffle', (event: boolean) => {