Set MPV path from local settings file

This commit is contained in:
jeffvli
2022-10-30 01:37:05 -07:00
parent e4f797debc
commit 699ed268e6
6 changed files with 26 additions and 18 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
import isElectron from 'is-electron';
export * from './hooks/useDefaultSettings';
export * from './hooks/use-default-settings';
const ipc = isElectron() ? window.electron.ipcRenderer : null;
@@ -10,7 +10,12 @@ const set = (property: string, value: any) => {
ipc?.SETTINGS_SET({ property, value });
};
const restart = () => {
ipc?.APP_RESTART();
};
export const settings = {
get,
restart,
set,
};