From b4654663d3973bcbfd3a75c33d78220e55852fc7 Mon Sep 17 00:00:00 2001 From: Arthur Mello Date: Mon, 4 Jul 2016 20:44:47 -0300 Subject: Should not use sounds notifications for calendar in silent mode --- src/snap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/snap.cpp b/src/snap.cpp index 363e0df..c834f72 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -103,7 +103,7 @@ public: // calendar events are muted in silent mode; alarm clocks never are std::shared_ptr sound; - if (appointment.is_ubuntu_alarm() || calendar_sounds_enabled()) { + if (appointment.is_ubuntu_alarm() || (calendar_sounds_enabled() && !silent_mode())) { // create the sound. const auto role = appointment.is_ubuntu_alarm() ? "alarm" : "alert"; const auto uri = get_alarm_uri(appointment, alarm, m_settings); -- cgit v1.2.3