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

View File

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