Clear stale status texts on session load
Items with transient status texts like Provider-Cooldown, Warte auf Daten, Verbindungsfehler are reset to "Wartet" when the app restarts, so they don't show misleading status from a previous session. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
5023a99f91
commit
05dc0ca1c6
@@ -2526,8 +2526,17 @@ export class DownloadManager extends EventEmitter {
|
||||
|| item.status === "paused"
|
||||
|| item.status === "reconnect_wait") {
|
||||
item.status = "queued";
|
||||
item.fullStatus = "Wartet";
|
||||
item.speedBps = 0;
|
||||
}
|
||||
// Clear stale transient status texts from previous session
|
||||
if (item.status === "queued" && item.fullStatus) {
|
||||
const fs = item.fullStatus.toLowerCase();
|
||||
if (fs.includes("provider-cooldown") || fs.includes("warte auf daten") || fs.includes("keine daten")
|
||||
|| fs.includes("link wird umgewandelt") || fs.includes("verbindungsfehler")) {
|
||||
item.fullStatus = "Wartet";
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const pkg of Object.values(this.session.packages)) {
|
||||
if (pkg.enabled === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user