diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-03-31 13:54:26 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-03-31 13:54:26 -0500 |
commit | 845067b3f37ff48eab3b612d52518e529559b738 (patch) | |
tree | 94f6104d71d25f2c000d4fa67880b895ab71c90e /src/snap.cpp | |
parent | 4bf70c7afae44d4005d25105690304b4e9e361f3 (diff) | |
download | ayatana-indicator-datetime-845067b3f37ff48eab3b612d52518e529559b738.tar.gz ayatana-indicator-datetime-845067b3f37ff48eab3b612d52518e529559b738.tar.bz2 ayatana-indicator-datetime-845067b3f37ff48eab3b612d52518e529559b738.zip |
simplify the awake display timeout code
Diffstat (limited to 'src/snap.cpp')
-rw-r--r-- | src/snap.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index 4329eca..e655d2d 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -88,11 +88,8 @@ public: intervention and shouldn't loop the sound. */ const bool interactive = appointment.is_ubuntu_alarm() && m_engine->supports_actions(); - // keep the screen on for the first part of the alarm; - // keep the system awake for the duration of the alarm - constexpr unsigned int display_on_seconds = 60; - auto awake = std::make_shared<uin::Awake>(m_engine->app_name(), - display_on_seconds); + // force the system to stay awake + auto awake = std::make_shared<uin::Awake>(m_engine->app_name()); // calendar events are muted in silent mode; alarm clocks never are std::shared_ptr<uin::Sound> sound; |