Skip to content

Commit 364ddf5

Browse files
committed
fix: default to PICS entry when execArgs is empty, not just when executablePath is empty
1 parent 439cd0d commit 364ddf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/app/gamenative/ui/component/dialog/ContainerConfigDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ internal fun ExecutablePathDropdown(
12621262
picsEntries = pics
12631263
executables = scanned
12641264

1265-
if (value.isEmpty() && pics.isNotEmpty()) {
1265+
if (pics.isNotEmpty() && containerData.execArgs.isEmpty()) {
12661266
val defaultEntry = pics.firstOrNull { it.type == "default" } ?: pics.first()
12671267
onLaunchOptionSelected(defaultEntry.executable, defaultEntry.arguments)
12681268
}

0 commit comments

Comments
 (0)