Fixed an issue in the editor related to opening a MicroPython device file. eric7

Sat, 31 Aug 2024 15:45:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 31 Aug 2024 15:45:39 +0200
branch
eric7
changeset 10895
11069c6bfff0
parent 10894
8f72e61712c7
child 10896
9cbbed624751

Fixed an issue in the editor related to opening a MicroPython device file.

src/eric7/QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/src/eric7/QScintilla/Editor.py	Sat Aug 31 11:26:54 2024 +0200
+++ b/src/eric7/QScintilla/Editor.py	Sat Aug 31 15:45:39 2024 +0200
@@ -467,6 +467,10 @@
                         ]
                         // 1024
                     )
+                elif FileSystemUtilities.isDeviceFileName(self.fileName):
+                    fileIsRemote = False
+                    fileExists = False
+                    fileSizeKB = 0
                 else:
                     fileIsRemote = False
                     fileExists = pathlib.Path(self.fileName).exists()

eric ide

mercurial