From 0e173ed05a70d5f5dbbd9a3bbd828d589432ff51 Mon Sep 17 00:00:00 2001 From: FX192 <120828496+FX192@users.noreply.github.com> Date: Wed, 28 Oct 2026 02:13:48 +0300 Subject: [PATCH] Block itch updates while the game is being uninstalled --- .../main/java/com/droiddeck/launcher/stores/itch/ItchUpdates.kt | 1 + app/src/main/java/com/droiddeck/launcher/ui/GameDetail.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/droiddeck/launcher/stores/itch/ItchUpdates.kt b/app/src/main/java/com/droiddeck/launcher/stores/itch/ItchUpdates.kt index a23195780c..44d9887046 100644 --- a/app/src/main/java/com/droiddeck/launcher/stores/itch/ItchUpdates.kt +++ b/app/src/main/java/com/droiddeck/launcher/stores/itch/ItchUpdates.kt @@ -160,6 +160,7 @@ internal object ItchUpdates { fun start(context: Context, game: InstalledStoreGame, update: ItchUpdate) { val app = context.applicationContext + if (StoresState.uninstalling.containsKey(game.key)) return val root = game.folder.parentFile?.parentFile ?: return val extra = game.sidecar.extra + ("uploadId" to update.uploadId) val item = CatalogItem( diff --git a/app/src/main/java/com/droiddeck/launcher/ui/GameDetail.kt b/app/src/main/java/com/droiddeck/launcher/ui/GameDetail.kt index 8cd08db1a4..df84306106 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/GameDetail.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/GameDetail.kt @@ -362,7 +362,7 @@ internal fun GameActions( GameShortcutMenu(game, a) EditArtButton(game) } - if (store == Store.ITCH && installed != null) ItchUpdateButton(installed, download == null) + if (store == Store.ITCH && installed != null) ItchUpdateButton(installed, download == null && StoresState.uninstalling[installed.key] == null) if (store == Store.XBOX && id != null) XboxInstalledStream(id, game?.name ?: item?.title.orEmpty(), item) if (store == Store.XBOX && installed != null && id != null) { SecondaryButton(stringResource(R.string.stores_xbox_update), enabled = download == null && !XboxRuntime.isActive(id)) {