feat: unify error handling + handle case of malformed config.yaml (#2058)

This commit is contained in:
Alex Hancock
2025-04-07 12:54:18 -04:00
committed by GitHub
parent a4e7d4ef5c
commit 926a511e95
5 changed files with 79 additions and 58 deletions
+6 -3
View File
@@ -627,9 +627,12 @@ app.whenReady().then(async () => {
log.info('from renderer:', info);
});
ipcMain.on('reload-app', () => {
app.relaunch();
app.exit(0);
ipcMain.on('reload-app', (event) => {
// Get the window that sent the event
const window = BrowserWindow.fromWebContents(event.sender);
if (window) {
window.reload();
}
});
let powerSaveBlockerId: number | null = null;