Fix pushbutton auth appearing to fail on a first set

This commit is contained in:
Michael Zanetti 2020-04-23 17:44:58 +02:00
parent 2cedf36d52
commit e645f82095
2 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -46,8 +46,8 @@ Page {
}
}
Component.objectName: {
engine.jsonRpcClient.requestPushButtonAuth("");
Component.onCompleted: {
engine.jsonRpcClient.requestPushButtonAuth("nymea-app (" + PlatformHelper.deviceModel + ")");
}
Connections {