fix: flush config on quit, verify temp cleanup, add missing spawn error handlers

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xRangerDE 2026-03-19 19:42:35 +01:00
parent 33730fd372
commit 86c80acf28

View File

@ -4201,6 +4201,7 @@ app.on('window-all-closed', () => {
if (currentProcess) { if (currentProcess) {
currentProcess.kill(); currentProcess.kill();
} }
saveConfig(config);
flushQueueSave(); flushQueueSave();
if (process.platform !== 'darwin') { if (process.platform !== 'darwin') {
@ -4213,5 +4214,6 @@ app.on('before-quit', () => {
cleanupMetadataCaches('shutdown'); cleanupMetadataCaches('shutdown');
stopDebugLogFlushTimer(true); stopDebugLogFlushTimer(true);
stopAutoUpdatePolling(); stopAutoUpdatePolling();
saveConfig(config);
flushQueueSave(); flushQueueSave();
}); });