aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-19 13:12:54 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit1ace19e7b28a5e817114a47e25d540f8c48f1cec (patch)
treea6d1fdf2db8262bc696de6a0f172b5a55a433747 /src/snap.cpp
parent8d5fb6cbdab5c7b12441fbce68821b91e1645132 (diff)
downloadayatana-indicator-datetime-1ace19e7b28a5e817114a47e25d540f8c48f1cec.tar.gz
ayatana-indicator-datetime-1ace19e7b28a5e817114a47e25d540f8c48f1cec.tar.bz2
ayatana-indicator-datetime-1ace19e7b28a5e817114a47e25d540f8c48f1cec.zip
Only play sounds for alarms.
Diffstat (limited to 'src/snap.cpp')
-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);