Force quit mpv on app close (#4)

This commit is contained in:
jeffvli 2022-12-25 00:56:16 -08:00
parent b6fd3a4f66
commit 4614358163
4 changed files with 34 additions and 6 deletions

View file

@ -165,6 +165,10 @@ export const getMainWindow = () => {
return mainWindow;
};
app.on('before-quit', () => {
mainWindow?.webContents.send('renderer-player-quit');
});
app.on('window-all-closed', () => {
// Respect the OSX convention of having the application in memory even
// after all windows have been closed