1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-25 05:47:45 +00:00

Make current profile/account menus model and place them properly

This commit is contained in:
Joshua Goins 2024-03-19 18:46:15 -04:00
parent 6845b91695
commit 67e482141d

View file

@ -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 {