diff --git a/package.json b/package.json index 625529b..dcba8f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "real-debrid-downloader", - "version": "1.5.91", + "version": "1.5.92", "description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)", "main": "build/main/main/main.js", "author": "Sucukdeluxe", diff --git a/src/main/download-manager.ts b/src/main/download-manager.ts index 9f3363a..49d3d5c 100644 --- a/src/main/download-manager.ts +++ b/src/main/download-manager.ts @@ -852,13 +852,12 @@ export class DownloadManager extends EventEmitter { } public setSettings(next: AppSettings): void { - const prevCleanupPolicy = this.settings.completedCleanupPolicy; next.totalDownloadedAllTime = Math.max(next.totalDownloadedAllTime || 0, this.settings.totalDownloadedAllTime || 0); this.settings = next; this.debridService.setSettings(next); this.resolveExistingQueuedOpaqueFilenames(); void this.cleanupExistingExtractedArchives().catch((err) => logger.warn(`cleanupExistingExtractedArchives Fehler (setSettings): ${compactErrorText(err)}`)); - if (prevCleanupPolicy !== next.completedCleanupPolicy && next.completedCleanupPolicy !== "never") { + if (next.completedCleanupPolicy !== "never") { this.applyRetroactiveCleanupPolicy(); } this.emitState();