mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
raise window on mpris raise
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user