mirror of https://github.com/nymea/nymea.git
Add missing changed notification for appdata
parent
1acd8ca808
commit
53b61dad5b
|
|
@ -64,6 +64,16 @@ JsonReply* AppDataHandler::Store(const QVariantMap ¶ms)
|
|||
// used for excessive amounts of data as it is mostly meant as a config file syncing mechanism.
|
||||
QSettings settings(NymeaSettings::storagePath() + "/appdata/" + appId + '/' + group + ".conf", QSettings::IniFormat);
|
||||
settings.setValue(key, value);
|
||||
|
||||
QVariantMap notification;
|
||||
notification.insert("appId", appId);
|
||||
if (!group.isEmpty()) {
|
||||
notification.insert("group", group);
|
||||
}
|
||||
notification.insert("key", key);
|
||||
notification.insert("value", value);
|
||||
emit Changed(notification);
|
||||
|
||||
return createReply(QVariantMap());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ public:
|
|||
Q_INVOKABLE JsonReply *Load(const QVariantMap ¶ms);
|
||||
|
||||
signals:
|
||||
void Changed(const QVariantMap ¶ms);
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue