From 92478b5ca50d75511035f0a87c065191e9f278d8 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:51:07 -0800 Subject: [PATCH] [bugfix]: update mpris volume when set by mpris --- .vscode/settings.json | 8 ++++---- src/main/features/linux/mpris.ts | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 75840e71..04145377 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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, diff --git a/src/main/features/linux/mpris.ts b/src/main/features/linux/mpris.ts index de9d9bb7..4fe285d0 100644 --- a/src/main/features/linux/mpris.ts +++ b/src/main/features/linux/mpris.ts @@ -70,6 +70,8 @@ mprisPlayer.on('volume', (vol: number) => { getMainWindow()?.webContents.send('request-volume', { volume, }); + + mprisPlayer.volume = volume / 100; }); mprisPlayer.on('shuffle', (event: boolean) => {