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

View File

@@ -2,21 +2,12 @@
<div class="simple-switch">
<div class="name" :style="{ width: longLabel ? '300px' : undefined }">
{{ label }}
<el-tooltip
v-if="tooltip"
placement="top"
class="tooltip"
:content="tooltip"
<el-tooltip v-if="tooltip" placement="top" class="tooltip" :content="tooltip"
><i class="el-icon-info"
/></el-tooltip>
</div>
<el-switch
class="switch"
:value="value"
@change="change"
:disabled="disabled"
></el-switch>
<el-switch class="switch" :value="value" @change="change" :disabled="disabled"></el-switch>
</div>
</template>