diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-11-28 18:42:01 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-11-28 18:42:01 +0100 |
commit | 285188ea532d0e4d1b2b798f1ab13e35202dca0d (patch) | |
tree | 60881ae834cb96eee61ab78e9845b58c8c6066db /launcher/minecraft/auth/AccountList.cpp | |
parent | 0e31f77468a8bf391ef2b31124f7882b7d907881 (diff) | |
download | PrismLauncher-285188ea532d0e4d1b2b798f1ab13e35202dca0d.tar.gz PrismLauncher-285188ea532d0e4d1b2b798f1ab13e35202dca0d.tar.bz2 PrismLauncher-285188ea532d0e4d1b2b798f1ab13e35202dca0d.zip |
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.
Diffstat (limited to 'launcher/minecraft/auth/AccountList.cpp')
-rw-r--r-- | launcher/minecraft/auth/AccountList.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/launcher/minecraft/auth/AccountList.cpp b/launcher/minecraft/auth/AccountList.cpp index 97ba48f4..d7537345 100644 --- a/launcher/minecraft/auth/AccountList.cpp +++ b/launcher/minecraft/auth/AccountList.cpp @@ -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: { |