made identty certain if the login ended
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
2ac89c2378
commit
9d7c36c2fc
@ -29,5 +29,5 @@ void GetSkinStep::onRequestDone()
|
|||||||
{
|
{
|
||||||
if (m_task->error() == QNetworkReply::NoError)
|
if (m_task->error() == QNetworkReply::NoError)
|
||||||
m_data->minecraftProfile.skin.data = *m_response;
|
m_data->minecraftProfile.skin.data = *m_response;
|
||||||
emit finished(AccountTaskState::STATE_SUCCEEDED, tr("Got skin"));
|
emit finished(AccountTaskState::STATE_WORKING, tr("Got skin"));
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ void MinecraftProfileStep::onRequestDone()
|
|||||||
if (m_task->error() == QNetworkReply::ContentNotFoundError) {
|
if (m_task->error() == QNetworkReply::ContentNotFoundError) {
|
||||||
// NOTE: Succeed even if we do not have a profile. This is a valid account state.
|
// NOTE: Succeed even if we do not have a profile. This is a valid account state.
|
||||||
m_data->minecraftProfile = MinecraftProfile();
|
m_data->minecraftProfile = MinecraftProfile();
|
||||||
emit finished(AccountTaskState::STATE_SUCCEEDED, tr("Account has no Minecraft profile."));
|
emit finished(AccountTaskState::STATE_WORKING, tr("Account has no Minecraft profile."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_task->error() != QNetworkReply::NoError) {
|
if (m_task->error() != QNetworkReply::NoError) {
|
||||||
|
Loading…
Reference in New Issue
Block a user