GH-4071 handle network errors when logging in with MSA as 'soft'
This makes the tokens not expire when such errors happen. Only applies to MSA, not the XBox and Mojang steps afterwards. Further testing and improvements are still needed.
This commit is contained in:
@ -244,8 +244,13 @@ QVariant AccountList::data(const QModelIndex &index, int role) const
|
||||
}
|
||||
|
||||
case StatusColumn: {
|
||||
auto isActive = account->isActive();
|
||||
return isActive ? "Working" : "Ready";
|
||||
if(account->isActive()) {
|
||||
return tr("Working", "Account status");
|
||||
}
|
||||
if(account->isExpired()) {
|
||||
return tr("Expired", "Account status");
|
||||
}
|
||||
return tr("Ready", "Account status");
|
||||
}
|
||||
|
||||
case ProfileNameColumn: {
|
||||
|
Reference in New Issue
Block a user