From bffa9b2a3f04801fc9c185c12603c773e09c0f81 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Wed, 24 Jun 2026 20:57:17 +0200 Subject: [PATCH] UI: separate Updating filter for queued/active/paused downloads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updating gets its own chip so Updatable shows only games the user could still trigger. Anything mid-flight — queued, actively downloading, paused with a partial on disk, or installing — moves to the new bucket. Implemented in gameCategory(): downloading is true for both queued and active jobs, so wartende Downloads (the user's words) show up in the same list as the one actively transferring. --- web/app.js | 5 ++++- web/index.html | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index 27f84e3..0a13d03 100644 --- a/web/app.js +++ b/web/app.js @@ -311,9 +311,12 @@ function renderGames() { // Mutually-exclusive bucket per game for the filter chips. function gameCategory(game) { + // In-flight work (queued, active, paused, installing) lives in its own + // bucket so Updatable shows only what the user could still trigger. + if (game.installing || game.downloading || game.resumable) return "updating"; // checking is transient (version lookup still running); keep it visible under // Updatable rather than letting it fall out of every specific filter. - if (game.installing || game.downloading || game.status === "checking") return "updatable"; + if (game.status === "checking") return "updatable"; if (game.patch_title_match === false) return "blocked"; if (game.status === "available" && isDownloadAllowed(game)) return "updatable"; if (!sourcePolicy(game).allow_install && !sourcePolicy(game).allow_download) return "blocked"; diff --git a/web/index.html b/web/index.html index 722937a..d4f864a 100644 --- a/web/index.html +++ b/web/index.html @@ -110,6 +110,7 @@