MicroPython: implemented some fixes for issues.

Tue, 02 Feb 2021 19:41:04 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 02 Feb 2021 19:41:04 +0100
changeset 8058
9769eb548f0d
parent 8057
f87f84ffcf3d
child 8059
32ba069e1328

MicroPython: implemented some fixes for issues.

eric6/MicroPython/MicroPythonCommandsInterface.py file | annotate | diff | comparison | revisions
eric6/MicroPython/MicroPythonFileManagerWidget.py file | annotate | diff | comparison | revisions
--- a/eric6/MicroPython/MicroPythonCommandsInterface.py	Tue Feb 02 16:39:47 2021 +0100
+++ b/eric6/MicroPython/MicroPythonCommandsInterface.py	Tue Feb 02 19:41:04 2021 +0100
@@ -371,7 +371,7 @@
                     "    try:",
                     "        files = __os_.listdir(dirname)",
                     "    except OSError:",
-                    "        return None",
+                    "        return []",
                     "    if dirname in ('', '/'):",
                     "        return list((f, stat(f)) for f in files if"
                     " is_visible(f, showHidden))",
--- a/eric6/MicroPython/MicroPythonFileManagerWidget.py	Tue Feb 02 16:39:47 2021 +0100
+++ b/eric6/MicroPython/MicroPythonFileManagerWidget.py	Tue Feb 02 19:41:04 2021 +0100
@@ -546,8 +546,9 @@
         @param deviceDir name of the device directory
         @type str
         """
-        self.__listLocalFiles(self.localCwd.text())
-        self.__newDeviceList()
+        # simulate button presses to reload the two lists
+        self.on_localReloadButton_clicked()
+        self.on_deviceReloadButton_clicked()
     
     @pyqtSlot(str)
     def __handleRsyncProgressMessage(self, message):

eric ide

mercurial