parent
6907a33dc7
commit
b2faf5e131
|
|
@ -14,6 +14,10 @@ ipcMain.on("isAutostart?", () =>
|
|||
.then((enabled) => mainWindow.webContents.send("isAutostart", enabled)),
|
||||
);
|
||||
|
||||
ipcMain.on("setAutostart", (state) =>
|
||||
state ? autoLaunch.enable() : autoLaunch.disable(),
|
||||
);
|
||||
ipcMain.on("setAutostart", (_event, state: boolean) => {
|
||||
if (state) {
|
||||
autoLaunch.enable();
|
||||
} else {
|
||||
autoLaunch.disable();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue