feat(settings): handle clicking on selected buttons in rendering mode and language

This commit is contained in:
2026-02-10 16:42:07 +01:00
parent a95feb223e
commit 8502d1d8dc
2 changed files with 2 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ const { selected, selectorPosition } = useButtonNavigation({
initialButton:
BUTTON_KEYS[locales.value.findIndex((l) => l.code === locale.value)] ??
BUTTON_KEYS[0]!,
onButtonClick: () => handleActivateA(),
navigation: {
english: {
right: "german",
@@ -207,7 +208,6 @@ defineOptions({
:b-label="$t('common.cancel')"
:a-label="$t('common.confirm')"
@activate-b="handleActivateB"
@activate-a="handleActivateA"
/>
<CommonButtonSelector

View File

@@ -78,6 +78,7 @@ const { selected, selectorPosition } = useButtonNavigation({
_2dMode: [11, 91, 233, 74],
},
initialButton: app.settings.renderingMode === "3d" ? "_3dMode" : "_2dMode",
onButtonClick: () => handleActivateA(),
navigation: {
_3dMode: { down: "_2dMode" },
_2dMode: { up: "_3dMode" },
@@ -185,7 +186,6 @@ onRender((ctx) => {
:b-label="$t('common.cancel')"
:a-label="$t('common.confirm')"
@activate-b="handleActivateB"
@activate-a="handleActivateA"
/>
<CommonButtonSelector