mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
[bugfix]: update mpris volume when set by mpris
This commit is contained in:
parent
49cbef729b
commit
92478b5ca5
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user