--- a/eric6/WebBrowser/WebBrowserWindow.py Mon Jan 04 16:39:09 2021 +0100 +++ b/eric6/WebBrowser/WebBrowserWindow.py Mon Jan 04 16:39:37 2021 +0100 @@ -4732,23 +4732,14 @@ (None = use configured timeout, 0 = indefinitely) @type int """ - if Preferences.getUI("NotificationsEnabled"): - if cls._notification is None: - from UI.NotificationWidget import NotificationWidget - cls._notification = NotificationWidget() - if timeout is None: - timeout = Preferences.getUI("NotificationTimeout") - cls._notification.showNotification(icon, heading, text, - timeout=timeout) - - @classmethod - def notificationsEnabled(cls): - """ - Class method to check, if notifications are enabled. - - @return flag indicating, if notifications are enabled (boolean) - """ - return Preferences.getUI("NotificationsEnabled") + if cls._notification is None: + from UI.NotificationWidget import NotificationWidget + cls._notification = NotificationWidget() + + if timeout is None: + timeout = Preferences.getUI("NotificationTimeout") + cls._notification.showNotification( + icon, heading, text, timeout=timeout) ###################################### ## Support for global status bar below