From 67e482141dc9666480fea8bcfc2ea160d36de760 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 19 Mar 2024 18:46:15 -0400 Subject: [PATCH] Make current profile/account menus model and place them properly --- launcher/ui/Pages/LoginPage.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/launcher/ui/Pages/LoginPage.qml b/launcher/ui/Pages/LoginPage.qml index d29bbf0..c73b2db 100644 --- a/launcher/ui/Pages/LoginPage.qml +++ b/launcher/ui/Pages/LoginPage.qml @@ -110,12 +110,16 @@ QQC2.Control { Layout.fillWidth: true FormCard.FormButtonDelegate { + id: currentProfileDelegate + text: i18n("Current Profile") description: LauncherCore.currentProfile.name QQC2.Menu { id: profileMenu + modal: true + Repeater { model: LauncherCore.profileManager @@ -136,7 +140,7 @@ QQC2.Control { } } - onClicked: profileMenu.popup() + onClicked: profileMenu.popup(currentProfileDelegate, currentProfileDelegate.width, currentProfileDelegate.height) } } @@ -161,6 +165,8 @@ QQC2.Control { QQC2.Menu { id: accountMenu + modal: true + Repeater { model: LauncherCore.accountManager @@ -183,7 +189,7 @@ QQC2.Control { } } - onClicked: accountMenu.popup() + onClicked: accountMenu.popup(currentAccountDelegate, currentAccountDelegate.width, currentAccountDelegate.height) } FormCard.FormDelegateSeparator {