Improve SettingsStore, add disableMinSize listener

This commit is contained in:
Vendicated
2023-04-10 01:43:47 +02:00
parent edfeca15ce
commit 0c77dbec92
5 changed files with 58 additions and 18 deletions

View File

@@ -39,8 +39,8 @@ ipcMain.on(IpcEvents.GET_VERSION, e => {
e.returnValue = app.getVersion();
});
ipcMain.handle(IpcEvents.SET_SETTINGS, (_, settings) => {
Settings.setData(settings);
ipcMain.handle(IpcEvents.SET_SETTINGS, (_, settings: typeof Settings.store, path?: string) => {
Settings.setData(settings, path);
});
ipcMain.handle(IpcEvents.RELAUNCH, () => {