diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-09-05 13:07:56 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-09-05 13:07:56 +0200 |
commit | d9923217fc684d382ec78a9c46b2ea9c4663ac9c (patch) | |
tree | cc0c9ce3d45980673fbf336019791e3684f2c457 /src/menu.cpp | |
parent | 4aa2131e2b08d4425afc8347fcedce0de4060436 (diff) | |
parent | 24d102c12a1470726c1d5321a918825cd3d18527 (diff) | |
download | ayatana-indicator-datetime-d9923217fc684d382ec78a9c46b2ea9c4663ac9c.tar.gz ayatana-indicator-datetime-d9923217fc684d382ec78a9c46b2ea9c4663ac9c.tar.bz2 ayatana-indicator-datetime-d9923217fc684d382ec78a9c46b2ea9c4663ac9c.zip |
Merge branch 'tari01-pr/drop-show-clock'
Attributes GH PR #17: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/17
Diffstat (limited to 'src/menu.cpp')
-rw-r--r-- | src/menu.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index 5469dd1..416d02c 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -94,10 +94,6 @@ protected: update_section(Appointments); // uses formatter.relative_format() update_section(Locations); // uses formatter.relative_format() }); - m_state->settings->show_clock.changed().connect([this](bool){ - update_header(); // update header's label - update_section(Locations); // locations' relative time may have changed - }); m_state->settings->show_calendar.changed().connect([this](bool){ update_section(Calendar); }); @@ -465,7 +461,6 @@ protected: GVariant* create_header_state() { - const auto visible = m_state->settings->show_clock.get(); const auto title = _("Date and Time"); auto label = g_variant_new_string(m_formatter->header.get().c_str()); @@ -474,7 +469,7 @@ protected: g_variant_builder_add(&b, "{sv}", "accessible-desc", label); g_variant_builder_add(&b, "{sv}", "label", label); g_variant_builder_add(&b, "{sv}", "title", g_variant_new_string(title)); - g_variant_builder_add(&b, "{sv}", "visible", g_variant_new_boolean(visible)); + g_variant_builder_add(&b, "{sv}", "visible", g_variant_new_boolean(TRUE)); return g_variant_builder_end(&b); } }; |