eric6/MicroPython/MicroPythonFileManagerWidget.py

changeset 8234
fcb6b4b96274
parent 8221
0572a215bd2f
child 8259
2bbec88047dd
--- a/eric6/MicroPython/MicroPythonFileManagerWidget.py	Tue Apr 13 17:49:05 2021 +0200
+++ b/eric6/MicroPython/MicroPythonFileManagerWidget.py	Tue Apr 13 18:02:59 2021 +0200
@@ -657,10 +657,7 @@
         @param localDevice flag indicating device access via local file system
         @type bool
         """
-        if localDevice:
-            cwdWidget = self.deviceCwd
-        else:
-            cwdWidget = self.localCwd
+        cwdWidget = self.deviceCwd if localDevice else self.localCwd
         
         dirPath, ok = E5PathPickerDialog.getPath(
             self,
@@ -684,10 +681,7 @@
         @param localDevice flag indicating device access via local file system
         @type bool
         """
-        if localDevice:
-            cwdWidget = self.deviceCwd
-        else:
-            cwdWidget = self.localCwd
+        cwdWidget = self.deviceCwd if localDevice else self.localCwd
         
         dirPath, ok = QInputDialog.getText(
             self,

eric ide

mercurial