Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
azubieta
plasma-appimage-integration
Commits
a1015c66
Verified
Commit
a1015c66
authored
Aug 06, 2019
by
azubieta
Browse files
Use remove helper on the remove file item action
parent
dfa06f3a
Pipeline
#673
passed with stage
in 5 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fileitem-actions/AppImageFileItemActions.cpp
View file @
a1015c66
...
...
@@ -106,8 +106,14 @@ void AppImageFileItemActions::addToMenu() {
void
AppImageFileItemActions
::
removeFromMenu
()
{
const
QList
<
QUrl
>
urls
=
sender
()
->
property
(
"urls"
).
value
<
QList
<
QUrl
>>
();
for
(
const
QUrl
&
url
:
urls
)
launcherInterface
->
unregisterApp
(
url
.
toString
());
QString
program
=
"plasma-appimage-integration"
;
for
(
const
QUrl
&
url
:
urls
)
{
QStringList
arguments
;
arguments
<<
"remove"
<<
url
.
toLocalFile
();
QProcess
::
startDetached
(
program
,
arguments
);
}
}
void
AppImageFileItemActions
::
update
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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