Changed the MicroPython super menu to always present the 'Flash UF2 Device' menu entry because some devices don't have a valid serial port when in UF2 'bootloader' mode. mpy_network

Mon, 27 Feb 2023 16:22:19 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 27 Feb 2023 16:22:19 +0100
branch
mpy_network
changeset 9814
1445ca4be40d
parent 9811
d6212cee3186
child 9815
6cbe3948044c

Changed the MicroPython super menu to always present the 'Flash UF2 Device' menu entry because some devices don't have a valid serial port when in UF2 'bootloader' mode.

src/eric7/MicroPython/MicroPythonWidget.py file | annotate | diff | comparison | revisions
--- a/src/eric7/MicroPython/MicroPythonWidget.py	Mon Feb 27 11:20:50 2023 +0100
+++ b/src/eric7/MicroPython/MicroPythonWidget.py	Mon Feb 27 16:22:19 2023 +0100
@@ -1520,9 +1520,8 @@
                 self.tr("Show Documentation"), self.__showDocumentation
             ).setEnabled(self.__device.hasDocumentationUrl())
             self.__superMenu.addSeparator()
-        if bool(UF2FlashDialog.getFoundDevices()):
-            self.__superMenu.addAction(self.tr("Flash UF2 Device"), self.__flashUF2)
-            self.__superMenu.addSeparator()
+        self.__superMenu.addAction(self.tr("Flash UF2 Device"), self.__flashUF2)
+        self.__superMenu.addSeparator()
         self.__superMenu.addAction(
             self.tr("Manage Unknown Devices"), self.__manageUnknownDevices
         )

eric ide

mercurial