From 318819afc6ce49f4d1d4719ef4ef38312963915b Mon Sep 17 00:00:00 2001 From: Trial97 Date: Sat, 18 May 2024 11:36:46 +0300 Subject: [PATCH] Made recommended button default Signed-off-by: Trial97 --- launcher/ui/pages/global/AccountListPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index 0b1c89666..6f2b0bd47 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -142,7 +142,7 @@ void AccountListPage::on_actionAddMicrosoft_triggered() auto deviceCode = box.addButton(tr("Legacy"), QMessageBox::ButtonRole::YesRole); auto authCode = box.addButton(tr("Recommended"), QMessageBox::ButtonRole::NoRole); auto cancel = box.addButton(tr("Cancel"), QMessageBox::ButtonRole::RejectRole); - box.setDefaultButton(cancel); + box.setDefaultButton(authCode); box.exec(); if ((box.clickedButton() != deviceCode && box.clickedButton() != authCode) || box.clickedButton() == cancel) return;