eric6/PluginManager/PluginRepositoryDialog.py

changeset 7955
567f2ec958c3
parent 7946
6901746220fc
child 7960
e8fc383322f7
equal deleted inserted replaced
7954:d32319ede131 7955:567f2ec958c3
344 self.__installButton.setEnabled(len(self.__selectedItems())) 344 self.__installButton.setEnabled(len(self.__selectedItems()))
345 if not self.__external: 345 if not self.__external:
346 ui = e5App().getObject("UserInterface") 346 ui = e5App().getObject("UserInterface")
347 else: 347 else:
348 ui = None 348 ui = None
349 if ui and ui.notificationsEnabled(): 349 if ui is not None:
350 ui.showNotification( 350 ui.showNotification(
351 UI.PixmapCache.getPixmap("plugin48"), 351 UI.PixmapCache.getPixmap("plugin48"),
352 self.tr("Download Plugin Files"), 352 self.tr("Download Plugin Files"),
353 self.tr("""The requested plugins were downloaded.""")) 353 self.tr("""The requested plugins were downloaded."""))
354 354
355 if self.__isDownloadInstall: 355 if self.__isDownloadInstall:
356 self.closeAndInstall.emit() 356 self.closeAndInstall.emit()
357 else: 357 else:
358 if ui is None or not ui.notificationsEnabled(): 358 if ui is None:
359 E5MessageBox.information( 359 E5MessageBox.information(
360 self, 360 self,
361 self.tr("Download Plugin Files"), 361 self.tr("Download Plugin Files"),
362 self.tr("""The requested plugins were downloaded.""")) 362 self.tr("""The requested plugins were downloaded."""))
363
363 self.downloadProgress.setValue(0) 364 self.downloadProgress.setValue(0)
364 365
365 # repopulate the list to update the refresh icons 366 # repopulate the list to update the refresh icons
366 self.__populateList() 367 self.__populateList()
367 368

eric ide

mercurial