src/eric7/EricWidgets/EricSideBar.py

branch
eric7
changeset 9586
2750e76fc366
parent 9568
63bf52355be9
child 9653
e67609152c5e
diff -r 2b4bbdaa0ff9 -r 2750e76fc366 src/eric7/EricWidgets/EricSideBar.py
--- a/src/eric7/EricWidgets/EricSideBar.py	Wed Dec 07 11:40:38 2022 +0100
+++ b/src/eric7/EricWidgets/EricSideBar.py	Wed Dec 07 11:49:36 2022 +0100
@@ -408,10 +408,11 @@
         if not stateDict:
             return False
 
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
-            minSize = self.layout.minimumSize().height()
-        else:
-            minSize = self.layout.minimumSize().width()
+        minSize = (
+            self.layout.minimumSize().height()
+            if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH)
+            else self.layout.minimumSize().width()
+        )
 
         if stateDict["version"] in (2, 3, 4):
             if stateDict["minimized"] and not self.__minimized:

eric ide

mercurial