mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-13 21:07:46 +00:00
Fix dialog parenting AGAIN
This commit is contained in:
parent
23f4694365
commit
a505447e80
4 changed files with 7 additions and 6 deletions
|
@ -165,7 +165,7 @@ FormCard.FormCardPage {
|
||||||
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
|
parent: page.QQC2.Overlay.overlay
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
page.account.config.lodestoneId = lodestoneIdField.text;
|
page.account.config.lodestoneId = lodestoneIdField.text;
|
||||||
|
@ -237,7 +237,7 @@ FormCard.FormCardPage {
|
||||||
Kirigami.PromptDialog {
|
Kirigami.PromptDialog {
|
||||||
id: otpDialog
|
id: otpDialog
|
||||||
title: i18n("Enter OTP Secret")
|
title: i18n("Enter OTP Secret")
|
||||||
parent: page
|
parent: page.QQC2.Overlay.overlay
|
||||||
|
|
||||||
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
||||||
|
|
||||||
|
@ -433,7 +433,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
|
parent: page.QQC2.Overlay.overlay
|
||||||
|
|
||||||
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
|
parent: page.QQC2.Overlay.overlay
|
||||||
}
|
}
|
||||||
|
|
||||||
data: Connections {
|
data: Connections {
|
||||||
|
|
|
@ -337,7 +337,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
|
parent: page.QQC2.Overlay.overlay
|
||||||
|
|
||||||
QQC2.Switch {
|
QQC2.Switch {
|
||||||
id: deleteFilesSwitch
|
id: deleteFilesSwitch
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Controls as QQC2
|
||||||
|
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
import org.kde.kirigamiaddons.formcard as FormCard
|
import org.kde.kirigamiaddons.formcard as FormCard
|
||||||
|
@ -141,6 +142,6 @@ FormCard.FormCardPage {
|
||||||
title: i18n("Login Error")
|
title: i18n("Login Error")
|
||||||
showCloseButton: false
|
showCloseButton: false
|
||||||
standardButtons: Kirigami.Dialog.Ok
|
standardButtons: Kirigami.Dialog.Ok
|
||||||
parent: page
|
parent: page.QQC2.Overlay.overlay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue