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.setValue(m_serverUuid, m_token);
|
||||
settings.endGroup();
|
||||
|
||||
m_initialSetupRequired = false;
|
||||
|
||||
emit authenticationRequiredChanged();
|
||||
|
||||
setNotificationsEnabled();
|
||||
|
||||
@ -46,8 +46,8 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
Component.objectName: {
|
||||
engine.jsonRpcClient.requestPushButtonAuth("");
|
||||
Component.onCompleted: {
|
||||
engine.jsonRpcClient.requestPushButtonAuth("nymea-app (" + PlatformHelper.deviceModel + ")");
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
||||
Reference in New Issue
Block a user