summaryrefslogtreecommitdiff
path: root/metawatch/metawatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch/metawatch.cpp')
-rw-r--r--metawatch/metawatch.cpp10
1 files changed, 8 insertions, 2 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();
}
}