Initial wiring of managing settings

This commit is contained in:
2025-06-07 23:38:42 -05:00
parent 89b68d0422
commit 8b01314f43
4 changed files with 71 additions and 18 deletions

View File

@@ -52,10 +52,10 @@ app.whenReady().then(() => {
loadArgs();
loadHandlers();
newton.settings.loadsettings();
let window = newton.createWindow(startType, isDebug, args);
newton.fs.setWindow(window);
})
});
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
@@ -67,7 +67,9 @@ app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
};
})
newton.settings.saveConfig();
});
process.on('uncaughtException', (error) => {
if (error.message != null) {
@@ -87,4 +89,4 @@ process.on('unhandledRejection', function(error = {}) {
if (error.stack != null) {
console.log(error.stack);
}
});
});