Fix restart function
This commit is contained in:
parent
73fd57cf33
commit
93960d4605
1 changed files with 2 additions and 3 deletions
|
@ -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 = () => {
|
||||
|
|
Reference in a new issue