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() |