mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
raise window on mpris raise
This commit is contained in:
parent
4134af0340
commit
dad80adb8b
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ mprisPlayer.on('seek', (event: number) => {
|
|||
});
|
||||
});
|
||||
|
||||
mprisPlayer.on('raise', () => {
|
||||
getMainWindow()?.show();
|
||||
});
|
||||
|
||||
ipcMain.on('update-position', (_event, arg: number) => {
|
||||
mprisPlayer.getPosition = () => arg * 1e6;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue