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';
|
import Store from 'electron-store';
|
||||||
|
|
||||||
const store = new Store();
|
const store = new Store();
|
||||||
|
@ -12,8 +12,7 @@ const get = (property: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const restart = () => {
|
const restart = () => {
|
||||||
app.relaunch();
|
ipcRenderer.send('app-restart');
|
||||||
app.exit(0);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const enableMediaKeys = () => {
|
const enableMediaKeys = () => {
|
||||||
|
|
Reference in a new issue