diff --git a/src/cfclient/ui/dialogs/bootloader.py b/src/cfclient/ui/dialogs/bootloader.py index e8b0cc86f8..8f92518c51 100644 --- a/src/cfclient/ui/dialogs/bootloader.py +++ b/src/cfclient/ui/dialogs/bootloader.py @@ -176,11 +176,17 @@ def setUiState(self, state): elif (state == self.UIState.FW_CONNECTED): self._cold_boot_error_message = None self.resetButton.setEnabled(False) - self.programButton.setEnabled(True) - self.setStatusLabel("Connected in firmware mode") self.coldBootButton.setEnabled(False) - self.setSourceSelectionUiEnabled(True) self._helper.connectivity_manager.set_enable(True) + + if self._helper.cf.link_uri.startswith("usb://"): + self.programButton.setEnabled(False) + self.setStatusLabel("Connected using USB") + self.setSourceSelectionUiEnabled(False) + else: + self.programButton.setEnabled(True) + self.setStatusLabel("Connected in firmware mode") + self.setSourceSelectionUiEnabled(True) elif (state == self.UIState.FW_SCANNING): self._cold_boot_error_message = None self.resetButton.setEnabled(False)