diff options
author | Arthur Mello <arthur.mello@canonical.com> | 2016-07-04 20:44:47 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | 2467a3c607ce561bd364500d9c41d547787c5c5e (patch) | |
tree | 7bf6a09aced0685ea49c9267d2cd5b00b4644aa0 | |
parent | cd03321181ba64c66a93c60d444dfea59f293fa1 (diff) | |
download | ayatana-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.cpp | 2 |
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); |