From 6b349bfd8bea1cf5adc82d83d778182855fe5ce9 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:01:48 -0500 Subject: [PATCH] fix(proton): move the default on DroidDeck-Bionic updates only ProtonMenuAutoTest pins that a DroidDeck-Proton update leaves the default request alone; the guest already keeps a DroidDeck-Proton default on the newest build. Only a DroidDeck-Bionic default was lost (the guest falls back to DroidDeck-Proton), so replaceOlder moves the default for the Bionic family only. --- .../main/java/com/droiddeck/launcher/session/ProtonExtras.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt b/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt index 02e998738d..e75c10d118 100644 --- a/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt +++ b/app/src/main/java/com/droiddeck/launcher/session/ProtonExtras.kt @@ -197,7 +197,8 @@ object ProtonExtras { if (runCatching { ComponentsManager.carryOver(context, old, newest) }.onFailure { Log.w(TAG, "components of $old", it) }.isFailure) continue if (runCatching { keepUserSettings(context, old, newest) }.onFailure { Log.w(TAG, "user settings of $old", it) }.isFailure) continue if (runCatching { ProtonDefault.moveGames(context, setOf(old), newest) }.onFailure { Log.w(TAG, "per-game picks of $old", it) }.isFailure) continue - if (runCatching { ProtonDefault.moveDefault(context, setOf(old), newest) }.onFailure { Log.w(TAG, "default pick of $old", it) }.isFailure) continue + // DroidDeck-Bionic only: the guest finds no default for a deleted Bionic build and falls back to DroidDeck-Proton + if (tool.id == BIONIC && runCatching { ProtonDefault.moveDefault(context, setOf(old), newest) }.onFailure { Log.w(TAG, "default pick of $old", it) }.isFailure) continue if (deleteTool(context, old)) ComponentsManager.forgetProton(context, old) else Log.w(TAG, "could not remove $old") }