mirror of
https://github.com/redstrate/Astra.git
synced 2025-06-18 02:47:45 +00:00
Fix settings dialogs going to the wrong window
This commit is contained in:
parent
58c304086c
commit
7be692c9e3
4 changed files with 7 additions and 3 deletions
|
@ -148,8 +148,8 @@ FormCard.FormCardPage {
|
||||||
Kirigami.PromptDialog {
|
Kirigami.PromptDialog {
|
||||||
id: lodestoneDialog
|
id: lodestoneDialog
|
||||||
title: i18n("Enter Lodestone Id")
|
title: i18n("Enter Lodestone Id")
|
||||||
|
|
||||||
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
||||||
|
parent: page
|
||||||
|
|
||||||
onAccepted: page.account.config.lodestoneId = lodestoneIdField.text
|
onAccepted: page.account.config.lodestoneId = lodestoneIdField.text
|
||||||
|
|
||||||
|
@ -212,6 +212,7 @@ FormCard.FormCardPage {
|
||||||
Kirigami.PromptDialog {
|
Kirigami.PromptDialog {
|
||||||
id: otpDialog
|
id: otpDialog
|
||||||
title: i18n("Enter OTP Secret")
|
title: i18n("Enter OTP Secret")
|
||||||
|
parent: page
|
||||||
|
|
||||||
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
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?")
|
subtitle: i18nc("@label", "Are you sure you want to delete this account?")
|
||||||
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
||||||
showCloseButton: false
|
showCloseButton: false
|
||||||
|
parent: page
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
LauncherCore.accountManager.deleteAccount(page.account);
|
LauncherCore.accountManager.deleteAccount(page.account);
|
||||||
|
|
|
@ -57,7 +57,7 @@ FormCard.FormCardPage {
|
||||||
readonly property Kirigami.PromptDialog errorDialog: Kirigami.PromptDialog {
|
readonly property Kirigami.PromptDialog errorDialog: Kirigami.PromptDialog {
|
||||||
showCloseButton: false
|
showCloseButton: false
|
||||||
standardButtons: Kirigami.Dialog.Ok
|
standardButtons: Kirigami.Dialog.Ok
|
||||||
parent: page.QQC2.Overlay.overlay
|
parent: page
|
||||||
}
|
}
|
||||||
|
|
||||||
data: Connections {
|
data: Connections {
|
||||||
|
|
|
@ -199,6 +199,7 @@ FormCard.FormCardPage {
|
||||||
Kirigami.PromptDialog {
|
Kirigami.PromptDialog {
|
||||||
id: gamescopeSettingsDialog
|
id: gamescopeSettingsDialog
|
||||||
title: i18n("Configure Gamescope")
|
title: i18n("Configure Gamescope")
|
||||||
|
parent: page
|
||||||
|
|
||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
QQC2.CheckBox {
|
QQC2.CheckBox {
|
||||||
|
@ -326,6 +327,7 @@ FormCard.FormCardPage {
|
||||||
subtitle: i18nc("@label", "Are you sure you want to delete this profile?")
|
subtitle: i18nc("@label", "Are you sure you want to delete this profile?")
|
||||||
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
||||||
showCloseButton: false
|
showCloseButton: false
|
||||||
|
parent: page
|
||||||
|
|
||||||
QQC2.Switch {
|
QQC2.Switch {
|
||||||
id: deleteFilesSwitch
|
id: deleteFilesSwitch
|
||||||
|
|
|
@ -136,8 +136,8 @@ FormCard.FormCardPage {
|
||||||
Kirigami.PromptDialog {
|
Kirigami.PromptDialog {
|
||||||
id: errorDialog
|
id: errorDialog
|
||||||
title: i18n("Login Error")
|
title: i18n("Login Error")
|
||||||
|
|
||||||
showCloseButton: false
|
showCloseButton: false
|
||||||
standardButtons: Kirigami.Dialog.Ok
|
standardButtons: Kirigami.Dialog.Ok
|
||||||
|
parent: page
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue