mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
Force quit mpv on app close (#4)
This commit is contained in:
parent
b6fd3a4f66
commit
4614358163
4 changed files with 34 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue