diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-12-19 16:58:19 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-12-19 16:58:19 +0100 |
commit | d0ebe52935bb6b92ea5c84a8388ab992066e7a5e (patch) | |
tree | cff6527e6f869c465e0b90296e761e246a8a39c6 /src/actions.cpp | |
parent | ecaacccacf853059ea4588c44bd13035faaba6af (diff) | |
parent | 63a57fde6677d8f663e5880a259998b95b1da6c5 (diff) | |
download | ayatana-indicator-datetime-d0ebe52935bb6b92ea5c84a8388ab992066e7a5e.tar.gz ayatana-indicator-datetime-d0ebe52935bb6b92ea5c84a8388ab992066e7a5e.tar.bz2 ayatana-indicator-datetime-d0ebe52935bb6b92ea5c84a8388ab992066e7a5e.zip |
Merge branch 'luigi311-toggle_alarm'
Attributes GH PR #118: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/118
Diffstat (limited to 'src/actions.cpp')
-rw-r--r-- | src/actions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actions.cpp b/src/actions.cpp index c184aef..18b99e8 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -142,7 +142,10 @@ GVariant* create_calendar_state(const std::shared_ptr<State>& state) { gboolean days[32] = { 0 }; for (const auto& appt : state->calendar_month->appointments().get()) - days[appt.begin.day_of_month()] = true; + if (!appt.is_alarm() || state->settings->show_alarms.get()) + { + days[appt.begin.day_of_month()] = true; + } GVariantBuilder day_builder; g_variant_builder_init(&day_builder, G_VARIANT_TYPE("ai")); |