Commit fda5b6f2 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Prefer deprecated but available API

The version that many distros have still doesn't have getSnap.
parent 67293df0
......@@ -340,7 +340,7 @@ QString SnapResource::appstreamId() const
QString SnapResource::channel() const
{
auto req = client()->getSnap(packageName());
auto req = client()->listOne(packageName());
req->runSync();
return req->error() ? QString() : req->snap()->trackingChannel();
}
......
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