Corrected a little glitch in the BlackFormattingDialog widget. eric7

Tue, 06 Dec 2022 17:42:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 06 Dec 2022 17:42:24 +0100
branch
eric7
changeset 9577
a0600d883f9e
parent 9576
be9f8e7e42e0
child 9578
bbe0a4b0832e

Corrected a little glitch in the BlackFormattingDialog widget.

src/eric7/CodeFormatting/BlackFormattingDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/CodeFormatting/BlackFormattingDialog.py	Tue Dec 06 17:35:41 2022 +0100
+++ b/src/eric7/CodeFormatting/BlackFormattingDialog.py	Tue Dec 06 17:42:24 2022 +0100
@@ -73,8 +73,6 @@
         super().__init__(parent)
         self.setupUi(self)
 
-        self.progressBar.setMaximum(len(filesList))
-
         self.resultsList.header().setSortIndicator(1, Qt.SortOrder.AscendingOrder)
 
         self.__config = copy.deepcopy(configuration)
@@ -101,6 +99,7 @@
         """
         Private method to execute the requested formatting action.
         """
+        self.progressBar.setMaximum(len(self.__filesList))
         self.progressBar.setValue(0)
         self.progressBar.setVisible(True)
 

eric ide

mercurial