fix: do not open account select dialog if there are no valid accounts

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit d6db750797)
This commit is contained in:
Octol1ttle 2026-05-12 00:19:57 +05:00 committed by github-actions[bot]
parent ea74850258
commit 6ad1bdb778

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.
ProfileSelectDialog selectDialog(tr("Which account would you like to use?"), ProfileSelectDialog::GlobalDefaultCheckbox,
m_parentWidget);