src/eric7/CondaInterface/CondaPackagesWidget.py

branch
eric7
changeset 9582
045e9c076261
parent 9573
9960d19d66b5
child 9653
e67609152c5e
--- a/src/eric7/CondaInterface/CondaPackagesWidget.py	Wed Dec 07 10:50:34 2022 +0100
+++ b/src/eric7/CondaInterface/CondaPackagesWidget.py	Wed Dec 07 11:35:40 2022 +0100
@@ -58,9 +58,7 @@
         self.__conda = conda
 
         if not CondaInterface.isCondaAvailable():
-            self.baseWidget.hide()
-            self.searchWidget.hide()
-
+            self.availableWidget.hide()
         else:
             self.notAvailableWidget.hide()
 
@@ -85,7 +83,8 @@
         self.upgradeButton.setIcon(EricPixmapCache.getIcon("1uparrow"))
         self.upgradeAllButton.setIcon(EricPixmapCache.getIcon("2uparrow"))
         self.uninstallButton.setIcon(EricPixmapCache.getIcon("minus"))
-        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.installButton.setIcon(EricPixmapCache.getIcon("plus"))
         self.showDetailsButton.setIcon(EricPixmapCache.getIcon("info"))
@@ -525,14 +524,15 @@
             self.__showDetails(item)
 
     @pyqtSlot(bool)
-    def on_searchToggleButton_toggled(self, checked):
+    def on_searchToggleButton_1_toggled(self, checked):
         """
-        Private slot to togle the search widget.
+        Private slot to toggle the search widget.
 
         @param checked state of the search widget button
         @type bool
         """
         self.searchWidget.setVisible(checked)
+        self.searchToggleButton_2.setChecked(checked)
 
         if checked:
             self.searchEdit.setFocus(Qt.FocusReason.OtherFocusReason)
@@ -540,6 +540,16 @@
 
             self.__updateSearchActionButtons()
 
+    @pyqtSlot(bool)
+    def on_searchToggleButton_2_toggled(self, checked):
+        """
+        Private slot to toggle the search widget.
+
+        @param checked state of the search widget button
+        @type bool
+        """
+        self.searchToggleButton_1.setChecked(checked)
+
     #######################################################################
     ## Menu related methods below
     #######################################################################

eric ide

mercurial