1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-06-17 18:37:45 +00:00

Fix settings dialogs going to the wrong window

This commit is contained in:
Joshua Goins 2025-04-29 15:12:07 -04:00
parent 58c304086c
commit 7be692c9e3
4 changed files with 7 additions and 3 deletions

View file

@ -148,8 +148,8 @@ FormCard.FormCardPage {
Kirigami.PromptDialog {
id: lodestoneDialog
title: i18n("Enter Lodestone Id")
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
parent: page
onAccepted: page.account.config.lodestoneId = lodestoneIdField.text
@ -212,6 +212,7 @@ FormCard.FormCardPage {
Kirigami.PromptDialog {
id: otpDialog
title: i18n("Enter OTP Secret")
parent: page
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
@ -329,6 +330,7 @@ FormCard.FormCardPage {
subtitle: i18nc("@label", "Are you sure you want to delete this account?")
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
showCloseButton: false
parent: page
onAccepted: {
LauncherCore.accountManager.deleteAccount(page.account);

View file

@ -57,7 +57,7 @@ FormCard.FormCardPage {
readonly property Kirigami.PromptDialog errorDialog: Kirigami.PromptDialog {
showCloseButton: false
standardButtons: Kirigami.Dialog.Ok
parent: page.QQC2.Overlay.overlay
parent: page
}
data: Connections {

View file

@ -199,6 +199,7 @@ FormCard.FormCardPage {
Kirigami.PromptDialog {
id: gamescopeSettingsDialog
title: i18n("Configure Gamescope")
parent: page
Kirigami.FormLayout {
QQC2.CheckBox {
@ -326,6 +327,7 @@ FormCard.FormCardPage {
subtitle: i18nc("@label", "Are you sure you want to delete this profile?")
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
showCloseButton: false
parent: page
QQC2.Switch {
id: deleteFilesSwitch

View file

@ -136,8 +136,8 @@ FormCard.FormCardPage {
Kirigami.PromptDialog {
id: errorDialog
title: i18n("Login Error")
showCloseButton: false
standardButtons: Kirigami.Dialog.Ok
parent: page
}
}