diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-04-19 13:12:54 -0300 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-06 02:09:31 +0200 |
commit | 6e9b1ac9d055f45cb04842b9ab5d86810eb7d2c8 (patch) | |
tree | fdf84717d116551dde061053e39c94d6b37d6e05 /src | |
parent | 14fbc83d449bbf2a4ed4d0716a37d6b4c433d55e (diff) | |
download | ayatana-indicator-datetime-6e9b1ac9d055f45cb04842b9ab5d86810eb7d2c8.tar.gz ayatana-indicator-datetime-6e9b1ac9d055f45cb04842b9ab5d86810eb7d2c8.tar.bz2 ayatana-indicator-datetime-6e9b1ac9d055f45cb04842b9ab5d86810eb7d2c8.zip |
Only play sounds for alarms.
Diffstat (limited to 'src')
-rw-r--r-- | src/snap.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<ain::Sound> 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); |