[geary] Allow disabling notifications via libmessagingmenu: Bug #739429



commit 6b3db836cee873e82702ae0bd04cd8e3165b21eb
Author: Jim Nelson <jim yorba org>
Date:   Tue Nov 11 16:49:14 2014 -0800

    Allow disabling notifications via libmessagingmenu: Bug #739429

 src/client/notification/libmessagingmenu.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/client/notification/libmessagingmenu.vala b/src/client/notification/libmessagingmenu.vala
index 476a873..7f8c8f0 100644
--- a/src/client/notification/libmessagingmenu.vala
+++ b/src/client/notification/libmessagingmenu.vala
@@ -63,7 +63,7 @@ public class Libmessagingmenu : NewMessagesIndicator {
     }
     
     private void show_new_messages_count(Geary.Folder folder, int count) {
-        if (!monitor.should_notify_new_messages(folder))
+        if (!GearyApplication.instance.config.show_notifications || 
!monitor.should_notify_new_messages(folder))
             return;
         
         string source_id = get_source_id(folder);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]