Fix restart function

This commit is contained in:
jeffvli 2022-12-29 19:30:55 -08:00
parent 73fd57cf33
commit 93960d4605

View File

@ -1,4 +1,4 @@
import { app, ipcRenderer } from 'electron';
import { ipcRenderer } from 'electron';
import Store from 'electron-store';
const store = new Store();
@ -12,8 +12,7 @@ const get = (property: string) => {
};
const restart = () => {
app.relaunch();
app.exit(0);
ipcRenderer.send('app-restart');
};
const enableMediaKeys = () => {