From 5cb8817d833ef204ecbf37e8568bf817fb619e6e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 17 Nov 2021 03:34:28 +0100 Subject: [PATCH] DesktopSystemDialog: Leverage AbstarctButton.action Instead of setting the same properties, set the action right away. --- components/dialogs/DesktopSystemDialog.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/dialogs/DesktopSystemDialog.qml b/components/dialogs/DesktopSystemDialog.qml index 3c30418d3..2011df9ec 100644 --- a/components/dialogs/DesktopSystemDialog.qml +++ b/components/dialogs/DesktopSystemDialog.qml @@ -152,9 +152,7 @@ Kirigami.AbstractApplicationWindow { model: root.actions delegate: Button { - text: modelData.text - icon: modelData.icon - onClicked: modelData.trigger() + action: modelData } } }