119 (self.__virtualenvFound or self.__pyvenvFound) and |
119 (self.__virtualenvFound or self.__pyvenvFound) and |
120 bool(self.targetDirectoryPicker.text()) and |
120 bool(self.targetDirectoryPicker.text()) and |
121 bool(self.nameEdit.text()) |
121 bool(self.nameEdit.text()) |
122 ) |
122 ) |
123 elif self.condaButton.isChecked(): |
123 elif self.condaButton.isChecked(): |
124 enable = bool(self.condaNameEdit.text()) or \ |
124 enable = ( |
|
125 bool(self.condaNameEdit.text()) or |
125 bool(self.condaTargetDirectoryPicker.text()) |
126 bool(self.condaTargetDirectoryPicker.text()) |
|
127 ) |
126 if self.condaSpecialsGroup.isChecked(): |
128 if self.condaSpecialsGroup.isChecked(): |
127 if self.condaCloneButton.isChecked(): |
129 if self.condaCloneButton.isChecked(): |
128 enable &= bool(self.condaCloneNameEdit.text()) or \ |
130 enable &= ( |
|
131 bool(self.condaCloneNameEdit.text()) or |
129 bool(self.condaCloneDirectoryPicker.text()) |
132 bool(self.condaCloneDirectoryPicker.text()) |
|
133 ) |
130 elif self.condaRequirementsButton.isChecked(): |
134 elif self.condaRequirementsButton.isChecked(): |
131 enable &= bool(self.condaRequirementsFilePicker.text()) |
135 enable &= bool(self.condaRequirementsFilePicker.text()) |
132 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
136 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
133 else: |
137 else: |
134 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
138 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |