Changed code of the pip widget to only show vulnerability column, if the associated checkbox is ticked. eric7

Thu, 02 Jun 2022 11:18:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 02 Jun 2022 11:18:45 +0200
branch
eric7
changeset 9114
d8abe530dae0
parent 9113
226ef65942c3
child 9115
8800cfd6fbab

Changed code of the pip widget to only show vulnerability column, if the associated checkbox is ticked.

eric7/PipInterface/PipPackagesWidget.py file | annotate | diff | comparison | revisions
--- a/eric7/PipInterface/PipPackagesWidget.py	Thu Jun 02 11:13:46 2022 +0200
+++ b/eric7/PipInterface/PipPackagesWidget.py	Thu Jun 02 11:18:45 2022 +0200
@@ -1488,6 +1488,9 @@
         """
         if checked:
             self.__updateVulnerabilityData(clearFirst=True)
+        
+        self.packagesList.header().setSectionHidden(
+            PipPackagesWidget.VulnerabilityColumn, not checked)
     
     @pyqtSlot()
     def __clearVulnerabilityInfo(self):

eric ide

mercurial