aboutsummaryrefslogtreecommitdiff
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-06-29 21:37:56 -0300
committerRobert Tari <robert@tari.in>2021-07-08 01:51:40 +0200
commitfb29c9e706c143e38726ea057fdb754a8e30c2aa (patch)
tree23eb102936ea63c23d5cf234a290606d60d3d21f /src/snap.cpp
parent1893e15b2ccb06b72df6bbd522ba8707eccedac1 (diff)
downloadayatana-indicator-datetime-fb29c9e706c143e38726ea057fdb754a8e30c2aa.tar.gz
ayatana-indicator-datetime-fb29c9e706c143e38726ea057fdb754a8e30c2aa.tar.bz2
ayatana-indicator-datetime-fb29c9e706c143e38726ea057fdb754a8e30c2aa.zip
Fix notifications so it respects if it should or not show bubbles or add to notification list
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 273f125..1b7c183 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -96,10 +96,7 @@ public:
const bool interactive = appointment.is_ubuntu_alarm() && m_engine->supports_actions();
// force the system to stay awake
- std::shared_ptr<ain::Awake> awake;
- if (appointment.is_ubuntu_alarm() || calendar_bubbles_enabled()) {
- awake = std::make_shared<ain::Awake>(m_engine->app_name());
- }
+ std::shared_ptr<ain::Awake> 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;
@@ -183,6 +180,9 @@ public:
});
}
+ b.set_show_notification_bubble(appointment.is_ubuntu_alarm() || calendar_bubbles_enabled());
+ b.set_post_to_messaging_menu(appointment.is_ubuntu_alarm() || calendar_list_enabled());
+
const auto key = m_engine->show(b);
if (key)
m_notifications.insert (key);