From f9db495e3f7e5e2e445179a1874b7c31e3abf039 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Thu, 8 Oct 2026 18:51:07 -0400 Subject: [PATCH] Stores: an installed game's page keeps only Uninstall; Launch, prefix and files live in Games --- .../java/com/droiddeck/launcher/ui/StoresDetail.kt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/ui/StoresDetail.kt b/app/src/main/java/com/droiddeck/launcher/ui/StoresDetail.kt index 342101e520..98f75312ec 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/StoresDetail.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/StoresDetail.kt @@ -9,8 +9,6 @@ import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.heightIn import androidx.compose.foundation.layout.padding -import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.PlayArrow import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable @@ -78,13 +76,10 @@ internal fun StoreGameDetail(store: Store, key: String, s: FrontEndState, a: Fro Actions { when { installed != null -> { - PrimaryButton(stringResource(R.string.games_launch), main = true, icon = Icons.Filled.PlayArrow, enabled = !s.busy) { launchStoreGame(ctx, store, id, s, a) } - // Every install is a shortcut; the chip just says so. + // Launching, the prefix and the files belong to the Games tab, where every + // installed game has them; here an install only says it is in Steam and + // offers the one thing Games does not: removing it. ActionChip(stringResource(R.string.stores_in_steam), ok = true) - s.steamGames.firstOrNull { it.source == store.id && it.storeId == id }?.protonPrefix?.takeIf { it.isDirectory }?.let { dir -> - SecondaryButton(stringResource(R.string.games_prefix)) { a.onBrowseFiles(dir) } - } - SecondaryButton(stringResource(R.string.games_files)) { a.onBrowseFiles(installed.folder) } SecondaryButton(if (confirmRemove) stringResource(R.string.stores_uninstall_confirm) else stringResource(R.string.stores_uninstall), enabled = download == null) { if (!confirmRemove) confirmRemove = true else { confirmRemove = false; StoresState.uninstall(ctx, installed) { StoresState.refresh(ctx); a.onLibraryChanged() }; onBack() }