From 4fea844edb7c4c43dcc0610e064b640ee01b3842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=ADguel=20=C3=81ngel=20Mulero=20Mart=C3=ADnez?= Date: Mon, 20 May 2024 16:02:33 +0200 Subject: [PATCH] Add auto-connect checkbox again (#3970) --- src/components/port-picker/PortPicker.vue | 1 + src/components/port-picker/PortsInput.vue | 38 ++++++++++++++++++----- src/js/port_handler.js | 8 ++--- src/js/serial_backend.js | 28 ++--------------- 4 files changed, 38 insertions(+), 37 deletions(-) diff --git a/src/components/port-picker/PortPicker.vue b/src/components/port-picker/PortPicker.vue index 74f6ae8806..78f5960cdc 100644 --- a/src/components/port-picker/PortPicker.vue +++ b/src/components/port-picker/PortPicker.vue @@ -38,6 +38,7 @@ export default { selectedBaud: 115200, portOverride: "/dev/rfcomm0", virtualMspVersion: "1.46.0", + autoConnect: true, }), }, connectedDevices: { diff --git a/src/components/port-picker/PortsInput.vue b/src/components/port-picker/PortsInput.vue index a0deb0f52f..f6909b7476 100644 --- a/src/components/port-picker/PortsInput.vue +++ b/src/components/port-picker/PortsInput.vue @@ -10,8 +10,7 @@ class="dropdown-select" :title="$t('firmwareFlasherManualPort')" :disabled="disabled" - @change="onChange" - @input="updateValue('selectedPort', $event.target.value)" + @change="onChangePort" >