Qml/ModPage: implement deleting

This commit is contained in:
Toast 2025-06-06 04:02:38 +02:00
parent 4dba9ad425
commit 95364a5596

View file

@ -24,9 +24,13 @@ Kirigami.Page {
Controls.Label {
text: "Permanently delete this mod?"
}
onAccepted: {
QModListModel.removeRows(index, 1);
applicationWindow().pageStack.pop();
}
onOpened: {
const deleteButton = standardButton(Kirigami.Dialog.Cancel)
deleteButton.forceActiveFocus()
const deleteButton = standardButton(Kirigami.Dialog.Cancel);
deleteButton.forceActiveFocus();
}
}