Release v1.6.12

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe
2026-03-04 15:07:08 +01:00
co-authored by Claude Opus 4.6
parent 52909258ca
commit dc695c9a04
3 changed files with 16 additions and 6 deletions
+5 -3
View File
@@ -161,7 +161,8 @@ export class AppController {
}
public async installUpdate(onProgress?: (progress: UpdateInstallProgress) => void): Promise<UpdateInstallResult> {
// Stop active downloads/extractions before installing to avoid data corruption
// Stop active downloads before installing. Extractions may continue briefly
// until prepareForShutdown() is called during app quit.
if (this.manager.isSessionRunning()) {
this.manager.stop();
}
@@ -294,9 +295,10 @@ export class AppController {
this.settings = restoredSettings;
saveSettings(this.storagePaths, this.settings);
this.manager.setSettings(this.settings);
// Stop the manager BEFORE saving the restored session to prevent
// the auto-save timer from overwriting it with the old in-memory session.
// Full stop including extraction abort — the old session is being replaced,
// so no extraction tasks from it should keep running.
this.manager.stop();
this.manager.abortAllPostProcessing();
const restoredSession = parsed.session as ReturnType<typeof loadSession>;
saveSession(this.storagePaths, restoredSession);
return { restored: true, message: "Backup wiederhergestellt. Bitte App neustarten." };