Add mpv load error notification

- Add retry limit on error
This commit is contained in:
jeffvli 2023-05-20 20:19:41 -07:00
parent 1f36978bb9
commit 0320fe6dcc
4 changed files with 47 additions and 13 deletions

View file

@ -421,6 +421,12 @@ ipcMain.on(
},
);
ipcMain.on('player-quit', async () => {
mpvInstance?.stop();
mpvInstance?.quit();
mpvInstance = null;
});
// Must duplicate with the one in renderer process settings.store.ts
enum BindingActions {
GLOBAL_SEARCH = 'globalSearch',