195 @type bool |
195 @type bool |
196 """ |
196 """ |
197 venvName = Preferences.getQt(envKey) if initial else comboBox.currentText() |
197 venvName = Preferences.getQt(envKey) if initial else comboBox.currentText() |
198 |
198 |
199 comboBox.clear() |
199 comboBox.clear() |
200 comboBox.addItems([""] + sorted(self.__virtualenvManager.getVirtualenvNames())) |
200 comboBox.addItems( |
|
201 [""] + sorted(self.__virtualenvManager.getVirtualenvNames(noServer=True)) |
|
202 ) |
201 |
203 |
202 if venvName: |
204 if venvName: |
203 index = comboBox.findText(venvName) |
205 index = comboBox.findText(venvName) |
204 if index < 0: |
206 if index < 0: |
205 index = 0 |
207 index = 0 |