diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-18 12:26:52 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-18 12:32:24 +0100 |
commit | 9c71f364d25df5a992c7067ecfca2e095abcc20f (patch) | |
tree | 1246b4b7a2dafa9260011259f66f305aa566f862 /launcher/LaunchController.cpp | |
parent | be910374dc81225863a55c1ada23074b0cb5f219 (diff) | |
download | PrismLauncher-9c71f364d25df5a992c7067ecfca2e095abcc20f.tar.gz PrismLauncher-9c71f364d25df5a992c7067ecfca2e095abcc20f.tar.bz2 PrismLauncher-9c71f364d25df5a992c7067ecfca2e095abcc20f.zip |
feat(accounts): add disabled account state
Diffstat (limited to 'launcher/LaunchController.cpp')
-rw-r--r-- | launcher/LaunchController.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 32fc99cb..11419358 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -228,6 +228,18 @@ void LaunchController::login() { emitFailed(errorString); return; } + case AccountState::Disabled: { + auto errorString = tr("The launcher's client identification changed. Please remove this account and add it again."); + QMessageBox::warning( + m_parentWidget, + tr("Client identification changed"), + errorString, + QMessageBox::StandardButton::Ok, + QMessageBox::StandardButton::Ok + ); + emitFailed(errorString); + return; + } case AccountState::Gone: { auto errorString = tr("The account no longer exists on the servers. It may have been migrated, in which case please add the new account you migrated this one to."); QMessageBox::warning( |