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/settings-live.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/settings-live.cpp')
-rw-r--r-- | src/settings-live.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/settings-live.cpp b/src/settings-live.cpp index 206b762..5c2addb 100644 --- a/src/settings-live.cpp +++ b/src/settings-live.cpp @@ -41,7 +41,6 @@ LiveSettings::LiveSettings(): update_custom_time_format(); update_locations(); update_show_calendar(); - update_show_clock(); update_show_date(); update_show_day(); update_show_detected_locations(); @@ -78,10 +77,6 @@ LiveSettings::LiveSettings(): g_settings_set_boolean(m_settings, SETTINGS_SHOW_CALENDAR_S, value); }); - show_clock.changed().connect([this](bool value){ - g_settings_set_boolean(m_settings, SETTINGS_SHOW_CLOCK_S, value); - }); - show_date.changed().connect([this](bool value){ g_settings_set_boolean(m_settings, SETTINGS_SHOW_DATE_S, value); }); @@ -174,11 +169,6 @@ void LiveSettings::update_show_calendar() show_calendar.set(val); } -void LiveSettings::update_show_clock() -{ - show_clock.set(g_settings_get_boolean(m_settings, SETTINGS_SHOW_CLOCK_S)); -} - void LiveSettings::update_show_date() { show_date.set(g_settings_get_boolean(m_settings, SETTINGS_SHOW_DATE_S)); @@ -284,9 +274,7 @@ void LiveSettings::on_changed(GSettings* /*settings*/, void LiveSettings::update_key(const std::string& key) { - if (key == SETTINGS_SHOW_CLOCK_S) - update_show_clock(); - else if (key == SETTINGS_LOCATIONS_S) + if (key == SETTINGS_LOCATIONS_S) update_locations(); else if (key == SETTINGS_TIME_FORMAT_S) update_time_format_mode(); |