Qml: Move delete dialog and button to mod details page

This commit is contained in:
Toast 2025-06-06 03:29:30 +02:00 committed by Toast
parent a2789b1704
commit 3024eb9a3d
2 changed files with 18 additions and 13 deletions

View file

@ -97,19 +97,6 @@ Kirigami.ApplicationWindow {
onClicked: mod.enabled = checked onClicked: mod.enabled = checked
} }
Controls.Button {
text: "Delete"
onClicked: notImplementedDialog.open()
Kirigami.Dialog {
id: notImplementedDialog
title: "Not implemented!"
standardButtons: Kirigami.Dialog.Ok
padding: Kirigami.Units.largeSpacing
Controls.Label {
text: "Deleting is not implemented yet"
}
}
}
} }
} }
} }

View file

@ -15,6 +15,24 @@ Kirigami.Page {
applicationWindow().pageStack.pop(); applicationWindow().pageStack.pop();
} }
Kirigami.Dialog {
id: notImplementedDialog
title: "Not implemented"
standardButtons: Kirigami.Dialog.Ok
padding: Kirigami.Units.largeSpacing
Controls.Label {
text: "Deleting is not implemented yet"
}
}
actions: [
Kirigami.Action {
text: "Remove"
icon.name: "delete-symbolic"
onToggled: notImplementedDialog.open()
}
]
ColumnLayout { ColumnLayout {
anchors { anchors {
top: parent.top top: parent.top