mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
[bugfix]: update mpris volume when set by mpris
This commit is contained in:
Vendored
+4
-4
@@ -11,10 +11,10 @@
|
|||||||
],
|
],
|
||||||
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true,
|
"source.fixAll.eslint": "explicit",
|
||||||
"source.fixAll.stylelint": true,
|
"source.fixAll.stylelint": "explicit",
|
||||||
"source.organizeImports": false,
|
"source.organizeImports": "never",
|
||||||
"source.formatDocument": true
|
"source.formatDocument": "explicit"
|
||||||
},
|
},
|
||||||
"css.validate": true,
|
"css.validate": true,
|
||||||
"less.validate": false,
|
"less.validate": false,
|
||||||
|
|||||||
@@ -70,6 +70,8 @@ mprisPlayer.on('volume', (vol: number) => {
|
|||||||
getMainWindow()?.webContents.send('request-volume', {
|
getMainWindow()?.webContents.send('request-volume', {
|
||||||
volume,
|
volume,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
mprisPlayer.volume = volume / 100;
|
||||||
});
|
});
|
||||||
|
|
||||||
mprisPlayer.on('shuffle', (event: boolean) => {
|
mprisPlayer.on('shuffle', (event: boolean) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user