Corrected a little glitch in the isort formatting dialog. eric7

Fri, 04 Nov 2022 13:46:31 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 04 Nov 2022 13:46:31 +0100
branch
eric7
changeset 9472
5798ee4a8807
parent 9471
7e0e5376ace4
child 9473
3f23dbf37dbe

Corrected a little glitch in the isort formatting dialog.

src/eric7/CodeFormatting/IsortFormattingDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/CodeFormatting/IsortFormattingDialog.py	Fri Nov 04 13:44:05 2022 +0100
+++ b/src/eric7/CodeFormatting/IsortFormattingDialog.py	Fri Nov 04 13:46:31 2022 +0100
@@ -75,8 +75,6 @@
         super().__init__(parent)
         self.setupUi(self)
 
-        self.progressBar.setMaximum(len(filesList))
-
         self.resultsList.header().setSortIndicator(1, Qt.SortOrder.AscendingOrder)
 
         self.__project = project
@@ -129,6 +127,7 @@
         """
         Private method to execute the requested sorting action.
         """
+        self.progressBar.setMaximum(len(self.__filesList))
         self.progressBar.setValue(0)
         self.progressBar.setVisible(True)
 

eric ide

mercurial