Fix pushbutton auth appearing to fail on a first set
This commit is contained in:
parent
2cedf36d52
commit
e645f82095
@ -165,6 +165,9 @@ void JsonRpcClient::notificationReceived(const QVariantMap &data)
|
|||||||
settings.beginGroup("jsonTokens");
|
settings.beginGroup("jsonTokens");
|
||||||
settings.setValue(m_serverUuid, m_token);
|
settings.setValue(m_serverUuid, m_token);
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
|
m_initialSetupRequired = false;
|
||||||
|
|
||||||
emit authenticationRequiredChanged();
|
emit authenticationRequiredChanged();
|
||||||
|
|
||||||
setNotificationsEnabled();
|
setNotificationsEnabled();
|
||||||
|
|||||||
@ -46,8 +46,8 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.objectName: {
|
Component.onCompleted: {
|
||||||
engine.jsonRpcClient.requestPushButtonAuth("");
|
engine.jsonRpcClient.requestPushButtonAuth("nymea-app (" + PlatformHelper.deviceModel + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|||||||
Reference in New Issue
Block a user