3859 Class method to check, if notifications are enabled. |
3859 Class method to check, if notifications are enabled. |
3860 |
3860 |
3861 @return flag indicating, if notifications are enabled (boolean) |
3861 @return flag indicating, if notifications are enabled (boolean) |
3862 """ |
3862 """ |
3863 if cls._fromEric: |
3863 if cls._fromEric: |
3864 return e5App().getObject("UserInterface").notificationsEnabled |
3864 return e5App().getObject("UserInterface").notificationsEnabled() |
3865 else: |
3865 else: |
3866 return Preferences.getUI("NotificationsEnabled") |
3866 return Preferences.getUI("NotificationsEnabled") |