3810 Class method to check, if notifications are enabled. |
3810 Class method to check, if notifications are enabled. |
3811 |
3811 |
3812 @return flag indicating, if notifications are enabled (boolean) |
3812 @return flag indicating, if notifications are enabled (boolean) |
3813 """ |
3813 """ |
3814 if cls._fromEric: |
3814 if cls._fromEric: |
3815 return e5App().getObject("UserInterface").notificationsEnabled |
3815 return e5App().getObject("UserInterface").notificationsEnabled() |
3816 else: |
3816 else: |
3817 return Preferences.getUI("NotificationsEnabled") |
3817 return Preferences.getUI("NotificationsEnabled") |