From 570d6afed8ff62e430f46b3d87870702240ce3e8 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sun, 23 Oct 2016 23:50:34 -0400 Subject: Add gsettings preference to enable/disable notifications Defaults to TRUE --- libcaja-private/caja-file-operations.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcaja-private/caja-file-operations.c') diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c index a1172533..b76ef038 100644 --- a/libcaja-private/caja-file-operations.c +++ b/libcaja-private/caja-file-operations.c @@ -200,6 +200,8 @@ caja_application_notify_unmount_show (const gchar *message) gchar **strings; strings = g_strsplit (message, "\n", 0); + if (!g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_NOTIFICATIONS)) return; + if (unmount_notify == NULL) { unmount_notify = notify_notification_new (strings[0], strings[1], -- cgit v1.2.1