Skip to content

Commit

Permalink
[bugfix]: update mpris volume when set by mpris
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Feb 8, 2024
1 parent 49cbef7 commit 92478b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/main/features/linux/mpris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ mprisPlayer.on('volume', (vol: number) => {
getMainWindow()?.webContents.send('request-volume', {
volume,
});

mprisPlayer.volume = volume / 100;
});

mprisPlayer.on('shuffle', (event: boolean) => {
Expand Down

0 comments on commit 92478b5

Please sign in to comment.