src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 10151
6ab011d1f866
parent 10144
45a9177c8e77
child 10173
9c64ac720853
diff -r c7e9d99ad775 -r 6ab011d1f866 src/eric7/MicroPython/MicroPythonWidget.py
--- a/src/eric7/MicroPython/MicroPythonWidget.py	Tue Aug 01 15:55:34 2023 +0200
+++ b/src/eric7/MicroPython/MicroPythonWidget.py	Wed Aug 02 10:24:42 2023 +0200
@@ -969,7 +969,11 @@
         """
         self.__superMenu.clear()
 
-        if self.__device and not self.__device.hasCircuitPython():
+        if (
+            self.__device
+            and self.__linkConnected
+            and not self.__device.hasCircuitPython()
+        ):
             networkConnected = self.__device.isNetworkConnected()
             useLocalMip = (
                 (

eric ide

mercurial