Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
5486002c
Commit
5486002c
authored
Jun 08, 2022
by
ivan tkachenko
Browse files
[applets/devicenotifier] Simplify adding the default contextual action
(cherry picked from commit
a0965f39
)
parent
19cf628a
Pipeline
#186981
passed with stage
in 6 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applets/devicenotifier/package/contents/ui/DeviceItem.qml
View file @
5486002c
...
...
@@ -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
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment