src/eric7/Graphics/ApplicationDiagramBuilder.py

branch
server
changeset 10610
bb0149571d94
parent 10596
ea35c92a3c7c
child 10704
27d21e5163b8
--- a/src/eric7/Graphics/ApplicationDiagramBuilder.py	Fri Feb 23 16:52:01 2024 +0100
+++ b/src/eric7/Graphics/ApplicationDiagramBuilder.py	Mon Feb 26 10:41:10 2024 +0100
@@ -185,28 +185,25 @@
                             ):
                                 candidates.append(entry.path)
 
-            if len(candidates) == 1:
-                return candidates[0]
-            elif len(candidates) > 1:
-                root, ok = QInputDialog.getItem(
-                    None,
-                    self.tr("Application Diagram"),
-                    self.tr("Select the application directory:"),
-                    sorted(candidates),
-                    0,
-                    True,
-                )
-                if ok:
-                    return root
-            else:
-                EricMessageBox.warning(
-                    None,
-                    self.tr("Application Diagram"),
-                    self.tr(
-                        """No application package could be detected."""
-                        """ Aborting..."""
-                    ),
-                )
+        if len(candidates) == 1:
+            return candidates[0]
+        elif len(candidates) > 1:
+            root, ok = QInputDialog.getItem(
+                None,
+                self.tr("Application Diagram"),
+                self.tr("Select the application directory:"),
+                sorted(candidates),
+                0,
+                True,
+            )
+            if ok:
+                return root
+        else:
+            EricMessageBox.warning(
+                None,
+                self.tr("Application Diagram"),
+                self.tr("""No application package could be detected. Aborting..."""),
+            )
         return None
 
     def buildDiagram(self):

eric ide

mercurial