aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukáš Tinkl <lukas.tinkl@canonical.com>2016-06-16 18:55:27 +0200
committerRobert Tari <robert@tari.in>2021-07-07 02:45:26 +0200
commit2098623e0db448eed4801acc05a54d17734e2cf8 (patch)
tree7ac7eeac3f7a3d3f0f2cc651c530e8fcf7590f7a /src
parent7561972627510db400ecbbad86e9737065bd1b76 (diff)
downloadayatana-indicator-datetime-2098623e0db448eed4801acc05a54d17734e2cf8.tar.gz
ayatana-indicator-datetime-2098623e0db448eed4801acc05a54d17734e2cf8.tar.bz2
ayatana-indicator-datetime-2098623e0db448eed4801acc05a54d17734e2cf8.zip
re-enable the calendar component in phone mode too
Diffstat (limited to 'src')
-rw-r--r--src/menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.cpp b/src/menu.cpp
index f9b6485..b1ac75c 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -319,7 +319,7 @@ private:
GMenuModel* create_calendar_section(Profile profile)
{
const bool show_calendar = m_state->settings->show_calendar.get() &&
- ((profile == Desktop) || (profile == DesktopGreeter));
+ ((profile == Desktop) || (profile == DesktopGreeter) || (profile == Phone));
auto menu = g_menu_new();
const char * action_name;
@@ -464,7 +464,7 @@ private:
const auto now = m_state->clock->localtime();
- if (profile == Desktop)
+ if (profile == Desktop || profile == Phone)
{
for(const auto& location : m_state->locations->locations.get())
{