Do not open account select dialog if there are no accounts (#5535)

This commit is contained in:
Tayou 2026-05-12 18:50:38 +00:00 committed by GitHub
commit 8d8951475c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ void LaunchController::decideAccount()
} }
} }
if (!m_accountToUse) { if (!m_accountToUse && accounts->anyAccountIsValid()) {
// If no default account is set, ask the user which one to use. // If no default account is set, ask the user which one to use.
ProfileSelectDialog selectDialog(tr("Which account would you like to use?"), ProfileSelectDialog::GlobalDefaultCheckbox, ProfileSelectDialog selectDialog(tr("Which account would you like to use?"), ProfileSelectDialog::GlobalDefaultCheckbox,
m_parentWidget); m_parentWidget);