aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-07-01 18:26:46 -0300
committerRobert Tari <robert@tari.in>2021-07-08 02:12:24 +0200
commit46b0ac44948f06f37d93886996e21c0ed9e014cd (patch)
tree4fcd27dc42b29484ac0e09356ebc4d35ef8df469
parentd425e3fadc1bca711c4dd3d5519fd831010ea4d6 (diff)
downloadayatana-indicator-datetime-46b0ac44948f06f37d93886996e21c0ed9e014cd.tar.gz
ayatana-indicator-datetime-46b0ac44948f06f37d93886996e21c0ed9e014cd.tar.bz2
ayatana-indicator-datetime-46b0ac44948f06f37d93886996e21c0ed9e014cd.zip
Only wake device if bubbles notifications are enabled
-rw-r--r--src/snap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 1b7c183..d0c12a0 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -96,7 +96,10 @@ public:
const bool interactive = appointment.is_ubuntu_alarm() && m_engine->supports_actions();
// force the system to stay awake
- std::shared_ptr<ain::Awake> awake = std::make_shared<ain::Awake>(m_engine->app_name());
+ std::shared_ptr<ain::Awake> awake;
+ if (appointment.is_ubuntu_alarm() || calendar_bubbles_enabled()) {
+ awake = std::make_shared<ain::Awake>(m_engine->app_name());
+ }
// calendar events are muted in silent mode; alarm clocks never are
std::shared_ptr<ain::Sound> sound;