Skip to content
Snippets Groups Projects
Commit abfbf29a authored by akiraohgaki's avatar akiraohgaki
Browse files

Fix condition

parent 4fef0897
No related branches found
No related tags found
No related merge requests found
......@@ -193,9 +193,9 @@ void XdgUrl::_installDownloadedFile(QNetworkReply *reply)
&& Utility::Package::installPlasmapkg(temporaryFile.fileName(), "windowswitcher")) {
result["message"] = QString("The KWin window switcher has been installed");
}
else if (type == "appimages"
else if (type == "bin" || type == "appimage"
&& Utility::Package::installProgram(temporaryFile.fileName(), path)) {
result["message"] = QString("The Appimage has been installed into " + destination);
result["message"] = QString("The program has been installed into " + destination);
}
else if (Utility::Package::uncompressArchive(temporaryFile.fileName(), destination)) {
result["message"] = QString("The archive file has been uncompressed into " + destination);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment