From 1ace19e7b28a5e817114a47e25d540f8c48f1cec Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Tue, 19 Apr 2016 13:12:54 -0300 Subject: Only play sounds for alarms. --- src/snap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/snap.cpp') diff --git a/src/snap.cpp b/src/snap.cpp index 5c530be..4736498 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -101,7 +101,9 @@ public: // calendar events are muted in silent mode; alarm clocks never are std::shared_ptr sound; - if (appointment.is_ubuntu_alarm() || (alarm.has_sound() && !silent_mode())) { + // FIXME: only play sounds for alarms for now, we should itegrate it with + // system settings to decide if we should play sounds for calendar notification or not + if (appointment.is_ubuntu_alarm()) { // 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