Merge pull request #2335 from Asizon/improve_hardwareId_check

Improving hardwareId behavior
10.8-maintenance
Michael Keller 2020-12-13 12:51:15 +01:00 committed by GitHub
commit 21f51371aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -18,6 +18,8 @@
opacity: 0.5;
font-size: 10px;
min-width: 210px;
display: flex;
flex-direction: column;
}
.tab_container .logo {
@ -73,15 +75,13 @@
<div class="logo_text">
<span>
{{ $t("versionLabelConfigurator") }}: {{ configuratorVersion }}
<br />
<span v-if="firmwareVersion && firmwareId">
{{ $t("versionLabelFirmware") }}: {{ firmwareVersion }}
{{ firmwareId }}
</span>
<br />
<span v-if="hardwareId">
{{ $t("versionLabelTarget") }}: {{ hardwareId }}
</span>
</span>
<span v-if="firmwareVersion && firmwareId">
{{ $t("versionLabelFirmware") }}: {{ firmwareVersion }}
{{ firmwareId }}
</span>
<span v-if="hardwareId">
{{ $t("versionLabelTarget") }}: {{ hardwareId }}
</span>
</div>
</div>

View File

@ -90,7 +90,7 @@ PortHandler.check_usb_devices = function (callback) {
callback(self.dfu_available);
}
if (!$('option:selected', self.portPickerElement).data().isDFU) {
if (!GUI.connected_to) {
if (!(GUI.connected_to || GUI.connect_lock)) {
FC.resetState();
}
self.portPickerElement.trigger('change');