diff -r d32319ede131 -r 567f2ec958c3 eric6/UI/UserInterface.py --- a/eric6/UI/UserInterface.py Mon Jan 04 16:39:09 2021 +0100 +++ b/eric6/UI/UserInterface.py Mon Jan 04 16:39:37 2021 +0100 @@ -7431,22 +7431,13 @@ (None = use configured timeout, 0 = indefinitely) @type int """ - if Preferences.getUI("NotificationsEnabled"): - if self.__notification is None: - from .NotificationWidget import NotificationWidget - self.__notification = NotificationWidget(parent=self) - if timeout is None: - timeout = Preferences.getUI("NotificationTimeout") - self.__notification.showNotification(icon, heading, text, - timeout=timeout) - - def notificationsEnabled(self): - """ - Public method to check, if notifications are enabled. - - @return flag indicating, if notifications are enabled (boolean) - """ - return Preferences.getUI("NotificationsEnabled") + if self.__notification is None: + from .NotificationWidget import NotificationWidget + self.__notification = NotificationWidget(parent=self) + if timeout is None: + timeout = Preferences.getUI("NotificationTimeout") + self.__notification.showNotification(icon, heading, text, + timeout=timeout) ######################### ## Support for IRC below