diff options
Diffstat (limited to 'metawatch')
-rw-r--r-- | metawatch/metawatch.cpp | 10 | ||||
-rw-r--r-- | metawatch/metawatch.h | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp index bd7d852..ca6eaa6 100644 --- a/metawatch/metawatch.cpp +++ b/metawatch/metawatch.cpp @@ -101,7 +101,7 @@ MetaWatch::MetaWatch(ConfigKey* settings, QObject* parent) : _dayMonthOrder = settings->value("day-month-order", false).toBool(); _showSeconds = settings->value("show-seconds", false).toBool(); _separationLines = false; // Seems to be v2 UI only - _autoBackligt = settings->value("auto-backlight", false).toBool(); + _autoBacklight = settings->value("auto-backlight", false).toBool(); _buttonNames << "A" << "B" << "C" << "D" << "E" << "F"; @@ -431,7 +431,7 @@ void MetaWatch::updateWatchProperties() optBits |= 1 << 2; if (_separationLines) optBits |= 1 << 3; - if (_autoBackligt) + if (_autoBacklight) optBits |= 1 << 4; qDebug() << "Setting watch properties to" << optBits; @@ -707,6 +707,12 @@ void MetaWatch::settingChanged(const QString &key) } else if (key == "24h-mode") { _24hMode = _settings->value(key, false).toBool(); if (isConnected()) updateWatchProperties(); + } else if (key == "show-seconds") { + _showSeconds = _settings->value(key, false).toBool(); + if (isConnected()) updateWatchProperties(); + } else if (key == "auto-backlight") { + _autoBacklight = _settings->value(key, false).toBool(); + if (isConnected()) updateWatchProperties(); } } diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h index 2fd2794..2a86f5c 100644 --- a/metawatch/metawatch.h +++ b/metawatch/metawatch.h @@ -152,7 +152,7 @@ protected: bool _dayMonthOrder : 1; bool _showSeconds : 1; bool _separationLines : 1; - bool _autoBackligt : 1; + bool _autoBacklight : 1; // Notifications: timers QTimer* _idleTimer; |