aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-19 13:12:54 -0300
committerRobert Tari <robert@tari.in>2021-07-06 02:09:31 +0200
commit6e9b1ac9d055f45cb04842b9ab5d86810eb7d2c8 (patch)
treefdf84717d116551dde061053e39c94d6b37d6e05 /src
parent14fbc83d449bbf2a4ed4d0716a37d6b4c433d55e (diff)
downloadayatana-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.cpp4
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);