eric6/UI/UserInterface.py

changeset 7955
567f2ec958c3
parent 7952
1849f61cf2b6
child 7959
44e15eda6506
--- 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

eric ide

mercurial