Preferences/ConfigurationPages/CondaPage.py

branch
conda
changeset 6697
2f5c951bdf14
parent 6678
5f1de9e59227
--- a/Preferences/ConfigurationPages/CondaPage.py	Sun Feb 03 16:31:53 2019 +0100
+++ b/Preferences/ConfigurationPages/CondaPage.py	Sun Feb 03 16:59:36 2019 +0100
@@ -35,13 +35,19 @@
             " dialog."))
         
         # set initial values
-        self.condaExePicker.setText(Preferences.getConda("CondaExecutable"))
+        self.__condaExecutable = Preferences.getConda("CondaExecutable")
+        self.condaExePicker.setText(self.__condaExecutable)
         
     def save(self):
         """
         Public slot to save the conda configuration.
         """
-        Preferences.setConda("CondaExecutable", self.condaExePicker.text())
+        condaExecutable = self.condaExePicker.text()
+        if condaExecutable != self.__condaExecutable:
+            Preferences.setConda("CondaExecutable", condaExecutable)
+            
+            import CondaInterface
+            CondaInterface.resetInterface()
     
 
 def create(dlg):

eric ide

mercurial