Fix start minimized

This commit is contained in:
smartfrigde 2023-05-13 23:31:31 +02:00
parent b1cb66e587
commit a90b348443

View file

@ -105,6 +105,9 @@ export function registerIpc(): void {
mainWindow.setPosition(xValue, yValue);
console.log("[Window state manager] Not maximized.");
}
if (await getConfig("startMinimized")) {
mainWindow.hide();
}
});
ipcMain.on("restart", () => {
app.relaunch();