mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 04:20:07 +02:00
Set MPV path from local settings file
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user