Reset account state on abort

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-06-07 20:24:32 +01:00
parent 834eb5a90d
commit 06aece111a
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E

View file

@ -181,8 +181,10 @@ void MinecraftAccount::authFailed(QString reason)
data.validity_ = Validity::None;
emit changed();
} break;
case AccountTaskState::STATE_WORKING: {
data.accountState = AccountState::Unchecked;
} break;
case AccountTaskState::STATE_CREATED:
case AccountTaskState::STATE_WORKING:
case AccountTaskState::STATE_SUCCEEDED: {
// Not reachable here, as they are not failures.
}