Qml/ModPage: implement deleting
This commit is contained in:
parent
4dba9ad425
commit
95364a5596
1 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue