Verified Commit a1015c66 authored by azubieta's avatar 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
......@@ -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() {
......
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