diff options
Diffstat (limited to 'src/capplet/mate-notification-applet-history.c')
-rw-r--r-- | src/capplet/mate-notification-applet-history.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/capplet/mate-notification-applet-history.c b/src/capplet/mate-notification-applet-history.c index cca03d6..ce38a6f 100644 --- a/src/capplet/mate-notification-applet-history.c +++ b/src/capplet/mate-notification-applet-history.c @@ -245,6 +245,12 @@ show_notification_history (MateNotificationHistoryContext *context) return; } + /* Check if history is enabled */ + if (context->settings && !g_settings_get_boolean (context->settings, GSETTINGS_KEY_HISTORY_ENABLED)) { + g_warning ("Cannot show history: history is disabled for privacy"); + return; + } + /* If popup already exists, destroy it (basically toggle off) */ if (context->history_popup) { gtk_widget_destroy (context->history_popup); |