102 self.__currentAPI.apiPreparationCancelled.connect( |
102 self.__currentAPI.apiPreparationCancelled.connect( |
103 self.__apiPreparationCancelled) |
103 self.__apiPreparationCancelled) |
104 self.__currentAPI.apiPreparationStarted.connect( |
104 self.__currentAPI.apiPreparationStarted.connect( |
105 self.__apiPreparationStarted) |
105 self.__apiPreparationStarted) |
106 self.addInstalledApiFileButton.setEnabled( |
106 self.addInstalledApiFileButton.setEnabled( |
107 self.__currentAPI.installedAPIFiles() != "") |
107 len(self.__currentAPI.installedAPIFiles()) > 0) |
108 else: |
108 else: |
109 self.addInstalledApiFileButton.setEnabled(False) |
109 self.addInstalledApiFileButton.setEnabled(False) |
110 |
110 |
111 self.addPluginApiFileButton.setEnabled( |
111 self.addPluginApiFileButton.setEnabled( |
112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) > 0) |
112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) > 0) |