eric6/PluginManager/PluginRepositoryDialog.py

changeset 8234
fcb6b4b96274
parent 8222
5994b80b8760
child 8259
2bbec88047dd
equal deleted inserted replaced
8233:bad78a592cc2 8234:fcb6b4b96274
234 """ 234 """
235 if self.__repositoryMissing or current is None: 235 if self.__repositoryMissing or current is None:
236 return 236 return
237 237
238 url = current.data(0, PluginRepositoryWidget.UrlRole) 238 url = current.data(0, PluginRepositoryWidget.UrlRole)
239 if url is None: 239 url = "" if url is None else self.__changeScheme(url)
240 url = ""
241 else:
242 url = self.__changeScheme(url)
243 self.urlEdit.setText(url) 240 self.urlEdit.setText(url)
244 self.descriptionEdit.setPlainText( 241 self.descriptionEdit.setPlainText(
245 current.data(0, PluginRepositoryWidget.DescrRole) and 242 current.data(0, PluginRepositoryWidget.DescrRole) and
246 self.__formatDescription( 243 self.__formatDescription(
247 current.data(0, PluginRepositoryWidget.DescrRole)) or "") 244 current.data(0, PluginRepositoryWidget.DescrRole)) or "")
343 Private method called, when the download of the plugins is finished. 340 Private method called, when the download of the plugins is finished.
344 """ 341 """
345 self.__downloadButton.setEnabled(len(self.__selectedItems())) 342 self.__downloadButton.setEnabled(len(self.__selectedItems()))
346 self.__downloadInstallButton.setEnabled(len(self.__selectedItems())) 343 self.__downloadInstallButton.setEnabled(len(self.__selectedItems()))
347 self.__installButton.setEnabled(len(self.__selectedItems())) 344 self.__installButton.setEnabled(len(self.__selectedItems()))
348 if not self.__external: 345 ui = (e5App().getObject("UserInterface")
349 ui = e5App().getObject("UserInterface") 346 if not self.__external else None)
350 else:
351 ui = None
352 if ui is not None: 347 if ui is not None:
353 ui.showNotification( 348 ui.showNotification(
354 UI.PixmapCache.getPixmap("plugin48"), 349 UI.PixmapCache.getPixmap("plugin48"),
355 self.tr("Download Plugin Files"), 350 self.tr("Download Plugin Files"),
356 self.tr("""The requested plugins were downloaded.""")) 351 self.tr("""The requested plugins were downloaded."""))

eric ide

mercurial