diff -r 123a7eadc798 -r f0428ceedb41 src/eric7/PipInterface/PipPackagesWidget.py --- a/src/eric7/PipInterface/PipPackagesWidget.py Wed Dec 07 08:58:21 2022 +0100 +++ b/src/eric7/PipInterface/PipPackagesWidget.py Wed Dec 07 10:50:34 2022 +0100 @@ -201,7 +201,8 @@ self.upgradeAllButton.setIcon(EricPixmapCache.getIcon("2uparrow")) self.uninstallButton.setIcon(EricPixmapCache.getIcon("minus")) self.showPackageDetailsButton.setIcon(EricPixmapCache.getIcon("info")) - self.searchToggleButton.setIcon(EricPixmapCache.getIcon("find")) + self.searchToggleButton_1.setIcon(EricPixmapCache.getIcon("find")) + self.searchToggleButton_2.setIcon(EricPixmapCache.getIcon("find")) self.searchButton.setIcon(EricPixmapCache.getIcon("findNext")) self.searchMoreButton.setIcon(EricPixmapCache.getIcon("plus")) self.installButton.setIcon(EricPixmapCache.getIcon("plus")) @@ -806,7 +807,7 @@ ) @pyqtSlot(bool) - def on_searchToggleButton_toggled(self, checked): + def on_searchToggleButton_1_toggled(self, checked): """ Private slot to togle the search widget. @@ -814,6 +815,7 @@ @type bool """ self.searchWidget.setVisible(checked) + self.searchToggleButton_2.setChecked(checked) if checked: self.searchEditName.setFocus(Qt.FocusReason.OtherFocusReason) @@ -823,6 +825,16 @@ self.__updateSearchButton() self.__updateSearchMoreButton(False) + @pyqtSlot(bool) + def on_searchToggleButton_2_toggled(self, checked): + """ + Private slot to togle the search widget. + + @param checked state of the search widget button + @type bool + """ + self.searchToggleButton_1.setChecked(checked) + @pyqtSlot(str) def on_searchEditName_textChanged(self, txt): """ @@ -1237,7 +1249,7 @@ ) self.__pipMenu.addSeparator() self.__checkVulnerabilityAct = self.__pipMenu.addAction( - self.tr("Check Vulnerabilities"), self.__updateVulnerabilityData + self.tr("Check Vulnerabilities"), self.__checkVulnerability ) # updateVulnerabilityDbAct self.__pipMenu.addAction( @@ -1549,6 +1561,14 @@ ) @pyqtSlot() + def __checkVulnerability(self): + """ + Private slot to update and show the vulnerability data (called from the menu). + """ + self.vulnerabilityCheckBox.setChecked(True) + self.on_vulnerabilityCheckBox_clicked(True) + + @pyqtSlot() def __clearVulnerabilityInfo(self): """ Private slot to clear the vulnerability info.