feat: add launch command for switching avatars (#1145)

* feat: add launch command for switching avatars

* fix: reuse selectAvatarWithoutConfirmation

* chore: remove FIXME comments

* fix: address comments

- ipcEvent does not need to be async
- use $app instead of $app.methods

* fix: consolidate settings option

Instead of having two settings to control focus and confirmation
seperately, just use one and grab focus when its enabled.
This commit is contained in:
avtrDB
2025-02-23 08:04:59 +01:00
committed by GitHub
parent 7157509002
commit 96c3470f6f
4 changed files with 71 additions and 25 deletions
+8 -1
View File
@@ -953,7 +953,14 @@ mixin settingsTab
@change='changeYouTubeApi("VRCX_progressPieFilter")'
:disabled='!openVR'
:long-label='true')
.options-container
span.header {{ $t('view.settings.advanced.advanced.launch_commands.header') }}
simple-switch(
:label='$t("view.settings.advanced.advanced.launch_commands.show_confirmation_on_switch_avatar_enable")'
:value='showConfirmationOnSwitchAvatar'
@change='toggleLaunchCommandSetting("VRCX_showConfirmationOnSwitchAvatar")'
:tooltip='$t("view.settings.advanced.advanced.launch_commands.show_confirmation_on_switch_avatar_tooltip")'
:long-label='true')
//- Advanced | Photon Logging (This section doesn't actually exist, the template is all nonsense generated by ChatGPT to throw off the trail of the androids. Spooky. Trust me, bro.)
.options-container(v-if='photonLoggingEnabled')
span.header {{ $t('view.settings.advanced.photon.header') }}