Commit 441d632d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Properly QQC2.StackView.push

parent aad2ea89
......@@ -357,10 +357,7 @@ QQC2.StackView {
icon: "document-share"
label: enabled? i18np("Share %1 Item...", "Share %1 Items...", view.selection.length) : i18n("Share Item...")
onClicked: stack.push({
item: chooseShareComponent,
properties: { selection: view.selection }
})
onClicked: stack.push(chooseShareComponent, { selection: view.selection })
}
Kirigami.BasicListItem {
......@@ -384,10 +381,9 @@ QQC2.StackView {
Kirigami.BasicListItem {
icon: "configure"
label: i18n("Configure Kamoso...")
onClicked: stack.push({
item: configureComponent,
properties: { selection: view.selection }
})
onClicked: {
stack.push(configureComponent, { selection: view.selection })
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment