aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-30 16:52:02 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitdd4265f22ee05aab8dbe6d60f9c7a13f85818466 (patch)
treec01abb0cee8377855c02bf0560d63690db719b9c /src/snap.cpp
parent46f3fa5a94d82a5f005039ca8d9df1330bdc4f4c (diff)
downloadayatana-indicator-datetime-dd4265f22ee05aab8dbe6d60f9c7a13f85818466.tar.gz
ayatana-indicator-datetime-dd4265f22ee05aab8dbe6d60f9c7a13f85818466.tar.bz2
ayatana-indicator-datetime-dd4265f22ee05aab8dbe6d60f9c7a13f85818466.zip
Only play a sound alert if the event contains a SOUND reminder.
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 9c2b4b6..72d68a2 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -227,6 +227,10 @@ private:
std::string uri;
+ // does not play any sound if alarm is not set as sound
+ if (!is_alarm && !(alarm.type & Alarm::SOUND))
+ return uri;
+
for(const auto& candidate : candidates)
{
if (gst_uri_is_valid (candidate.c_str()))