aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-07-04 20:44:47 -0300
committerRobert Tari <robert@tari.in>2021-07-08 02:54:11 +0200
commitb4654663d3973bcbfd3a75c33d78220e55852fc7 (patch)
tree2e4ca6d68d0f8f84e0fb7bc0a89fd51d788a0097 /src
parentd61975b6145c245bf8df5322942395b101ca57c9 (diff)
downloadayatana-indicator-datetime-b4654663d3973bcbfd3a75c33d78220e55852fc7.tar.gz
ayatana-indicator-datetime-b4654663d3973bcbfd3a75c33d78220e55852fc7.tar.bz2
ayatana-indicator-datetime-b4654663d3973bcbfd3a75c33d78220e55852fc7.zip
Should not use sounds notifications for calendar in silent mode
Diffstat (limited to 'src')
-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);