MicroPython: corrected a glitch in the UF2 flash dialog.

Tue, 23 Mar 2021 18:39:35 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 23 Mar 2021 18:39:35 +0100
changeset 8170
fb77bff32621
parent 8169
139bd30c52c2
child 8171
371b15b2f4dd

MicroPython: corrected a glitch in the UF2 flash dialog.

eric6/MicroPython/UF2FlashDialog.py file | annotate | diff | comparison | revisions
--- a/eric6/MicroPython/UF2FlashDialog.py	Mon Mar 22 19:31:18 2021 +0100
+++ b/eric6/MicroPython/UF2FlashDialog.py	Tue Mar 23 18:39:35 2021 +0100
@@ -370,6 +370,7 @@
             " flash button.</li>"
             "</ol>"
         ),
+        "show_all": True,
         "firmware": "CircuitPython",
     },
     
@@ -402,6 +403,7 @@
             " flash button.</li>"
             "</ol>"
         ),
+        "show_all": False,
         "firmware": "CircuitPython",
     },
     
@@ -434,6 +436,7 @@
             " flash button.</li>"
             "</ol>"
         ),
+        "show_all": True,
         "firmware": "MicroPython / CircuitPython",
     },
 }
@@ -639,7 +642,11 @@
             "</p>"
         )
         for boardType in SupportedUF2Boards:
-            htmlText += "<hr/>" + SupportedUF2Boards[boardType]["instructions"]
+            if SupportedUF2Boards[boardType]["show_all"]:
+                htmlText += (
+                    "<hr/>" +
+                    SupportedUF2Boards[boardType]["instructions"]
+                )
         self.infoEdit.setHtml(htmlText)
     
     def __showSpecificInstructions(self, devices):

eric ide

mercurial