--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingManager.py Tue Jan 05 15:14:40 2021 +0100 +++ b/eric6/WebBrowser/SafeBrowsing/SafeBrowsingManager.py Tue Jan 05 18:28:31 2021 +0100 @@ -25,6 +25,7 @@ import Utilities import UI.PixmapCache +from UI.NotificationWidget import NotificationTypes from .SafeBrowsingAPIClient import SafeBrowsingAPIClient from .SafeBrowsingCache import SafeBrowsingCache @@ -157,10 +158,16 @@ """ from WebBrowser.WebBrowserWindow import WebBrowserWindow + if timeout == 0: + kind = NotificationTypes.Critical + else: + kind = NotificationTypes.Information + WebBrowserWindow.showNotification( UI.PixmapCache.getPixmap("safeBrowsing48"), self.tr("Google Safe Browsing"), message, + kind=kind, timeout=timeout, ) @@ -204,10 +211,11 @@ ok = self.updateHashPrefixCache()[0] if ok: self.__showNotificationMessage( - self.tr("Updating threat lists done")) + self.tr("Updating threat lists done.")) else: self.__showNotificationMessage( - self.tr("Updating threat lists failed")) + self.tr("Updating threat lists failed."), + timeout=0) if ok: nextUpdateDateTime = (