aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-07-04 20:44:47 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit2467a3c607ce561bd364500d9c41d547787c5c5e (patch)
tree7bf6a09aced0685ea49c9267d2cd5b00b4644aa0
parentcd03321181ba64c66a93c60d444dfea59f293fa1 (diff)
downloadayatana-indicator-datetime-2467a3c607ce561bd364500d9c41d547787c5c5e.tar.gz
ayatana-indicator-datetime-2467a3c607ce561bd364500d9c41d547787c5c5e.tar.bz2
ayatana-indicator-datetime-2467a3c607ce561bd364500d9c41d547787c5c5e.zip
Should not use sounds notifications for calendar in silent mode
-rw-r--r--src/snap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 363e0df..c834f72 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -103,7 +103,7 @@ public:
// calendar events are muted in silent mode; alarm clocks never are
std::shared_ptr<ain::Sound> sound;
- if (appointment.is_ubuntu_alarm() || calendar_sounds_enabled()) {
+ if (appointment.is_ubuntu_alarm() || (calendar_sounds_enabled() && !silent_mode())) {
// create the sound.
const auto role = appointment.is_ubuntu_alarm() ? "alarm" : "alert";
const auto uri = get_alarm_uri(appointment, alarm, m_settings);