eric6/WebBrowser/Download/DownloadManager.py

changeset 7955
567f2ec958c3
parent 7923
91e843545d9a
child 8143
2c730d5fd177
equal deleted inserted replaced
7954:d32319ede131 7955:567f2ec958c3
495 self.downloadsCountChanged.emit() 495 self.downloadsCountChanged.emit()
496 496
497 if self.activeDownloadsCount() == 0: 497 if self.activeDownloadsCount() == 0:
498 # all active downloads are done 498 # all active downloads are done
499 if success and e5App().activeWindow() is not self: 499 if success and e5App().activeWindow() is not self:
500 if WebBrowserWindow.notificationsEnabled(): 500 WebBrowserWindow.showNotification(
501 WebBrowserWindow.showNotification( 501 UI.PixmapCache.getPixmap("downloads48"),
502 UI.PixmapCache.getPixmap("downloads48"), 502 self.tr("Downloads finished"),
503 self.tr("Downloads finished"), 503 self.tr("All files have been downloaded.")
504 self.tr("All files have been downloaded.") 504 )
505 )
506 if not Preferences.getWebBrowser("DownloadManagerAutoClose"): 505 if not Preferences.getWebBrowser("DownloadManagerAutoClose"):
507 self.raise_() 506 self.raise_()
508 self.activateWindow() 507 self.activateWindow()
509 508
510 self.__stopUpdateTimer() 509 self.__stopUpdateTimer()

eric ide

mercurial