diff options
author | Lukáš Tinkl <lukas.tinkl@canonical.com> | 2016-06-16 18:55:27 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | 63e38ce5a62731310013918a3ef16b1c81a68dd0 (patch) | |
tree | 442f78745e475561f4fd042126d3fdcdfa77d909 /src/menu.cpp | |
parent | 7946051c0be6255ed755b9c7996566720db5889c (diff) | |
download | ayatana-indicator-datetime-63e38ce5a62731310013918a3ef16b1c81a68dd0.tar.gz ayatana-indicator-datetime-63e38ce5a62731310013918a3ef16b1c81a68dd0.tar.bz2 ayatana-indicator-datetime-63e38ce5a62731310013918a3ef16b1c81a68dd0.zip |
re-enable the calendar component in phone mode too
Diffstat (limited to 'src/menu.cpp')
-rw-r--r-- | src/menu.cpp | 4 |
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()) { |