From 51cd3c362011d4b1b9688931a960aa859af40b2f Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 10 Feb 2026 15:58:38 -0700 Subject: [PATCH] Fix being able to update while downloads are in progress --- src/app/game/page.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx index 72de0af..6b3189b 100644 --- a/src/app/game/page.tsx +++ b/src/app/game/page.tsx @@ -20,6 +20,7 @@ export default function Installs () { setFadeOut, setSelectedVersionList, downloadedVersionsConfig, + downloadProgress, normalConfig, setManagingVersion, getVersionInfo, @@ -301,6 +302,10 @@ export default function Installs () { !( platform() === 'linux' && getVersionInfo(entry)?.wine + ) || + needsRevisionUpdate( + getVersionInfo(entry)?.lastRevision, + entry ) } onClick={e => e.stopPropagation()} @@ -460,7 +465,12 @@ export default function Installs () { entry ) } - title='Click to update the game' + disabled={downloadProgress.length != 0} + title={ + downloadProgress.length != 0 + ? 'Cannot update while downloads are in progress ' + : 'Click to update the game' + } > Update