Verified Commit a0965f39 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/devicenotifier] Simplify adding the default contextual action

parent e1b14655
......@@ -262,9 +262,7 @@ PlasmaExtras.ExpandableListItem {
}
// "Mount" action that does not open it in the file manager
QQC2.Action {
id: mountWithoutOpeningAction
contextualActionsModel: QQC2.Action {
text: i18n("Mount")
icon.name: "media-mount"
......@@ -277,8 +275,4 @@ PlasmaExtras.ExpandableListItem {
service.startOperationCall(operation);
}
}
Component.onCompleted: {
contextualActionsModel.push(mountWithoutOpeningAction);
}
}
Supports Markdown
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