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)) {