From 7b6342591c323929160af45a5353a596679060d0 Mon Sep 17 00:00:00 2001 From: Matthew Toro Date: Sat, 4 Apr 2026 22:35:07 -0400 Subject: [PATCH] minor change: update authentication messagebox options to include 'Remove' and handle profile removal --- Minecraft.Client/Common/UI/UIScene_MainMenu.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp b/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp index 139f6b778..3d1febc33 100644 --- a/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp @@ -524,7 +524,7 @@ void UIScene_MainMenu::ShowAuthMenu(int iPad, void *pClass) s_authPad = iPad; s_authParam = pClass; - static const wchar_t *authOptions[] = { L"Next", L"Use", L"Add", L"Back" }; + static const wchar_t *authOptions[] = { L"Next", L"Use", L"Add", L"Remove" }; ShowAuthMessageBox(iPad, L"Authentication", BuildAuthProfileText(), authOptions, 4, &UIScene_MainMenu::AuthMenuReturned, pClass, true); } @@ -565,6 +565,16 @@ int UIScene_MainMenu::AuthMenuReturned(LPVOID lpParam, int iPad, const C4JStorag ShowAuthAddMenu(iPad, lpParam); break; } + case C4JStorage::EMessage_ResultFourthOption: + { + if (!profiles.empty()) + { + AuthProfileManager::removeSelectedProfile(); + if (auto *scene = ui.FindScene(eUIScene_MessageBox)) + static_cast(scene)->updateContent(BuildAuthProfileText()); + } + return 0; + } default: { ui.NavigateBack(iPad);