mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix restart function
This commit is contained in:
@@ -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 New Issue
Block a user