1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 03:37:47 +00:00

Use FormLinkDelegate for the lodestone and mog station links

This commit is contained in:
Joshua Goins 2025-02-01 10:01:23 -05:00
parent f1a58b1eb7
commit bc5da77d29

View file

@ -322,21 +322,23 @@ QQC2.Control {
Layout.alignment: Qt.AlignBottom
FormCard.FormButtonDelegate {
FormCard.FormLinkDelegate {
text: i18nc("@action:button", "The Lodestone")
icon.name: "internet-services-symbolic"
visible: !LauncherCore.currentProfile.account.isSapphire
// TODO: how do we link to a "worldwide" lodestone, if that even exists?
onClicked: applicationWindow().openUrl('https://na.finalfantasyxiv.com/lodestone/')
url: 'https://na.finalfantasyxiv.com/lodestone/'
onClicked: applicationWindow().openUrl(url)
}
FormCard.FormDelegateSeparator {}
FormCard.FormButtonDelegate {
FormCard.FormLinkDelegate {
text: i18nc("@action:button", "Mog Station")
icon.name: "internet-services-symbolic"
visible: !LauncherCore.currentProfile.account.isSapphire
onClicked: applicationWindow().openUrl('https://secure.square-enix.com/account/app/svc/mogstation/')
url: 'https://secure.square-enix.com/account/app/svc/mogstation/'
onClicked: applicationWindow().openUrl(url)
}
}
}