Commit 4dc58c58 authored by Jan Grulich's avatar Jan Grulich

Make sure we display at least some origin if there is non for flatpak bundles

parent e273bd5d
......@@ -295,12 +295,14 @@ FlatpakResource * FlatpakBackend::addAppFromFlatpakBundle(const QUrl &url)
resource->setBundledIcon(pixmap);
}
const QString origin = QString::fromUtf8(flatpak_bundle_ref_get_origin(bundleRef));
resource->setDownloadSize(0);
resource->setInstalledSize(flatpak_bundle_ref_get_installed_size(bundleRef));
resource->setPropertyState(FlatpakResource::DownloadSize, FlatpakResource::AlreadyKnown);
resource->setPropertyState(FlatpakResource::InstalledSize, FlatpakResource::AlreadyKnown);
resource->setFlatpakFileType(QStringLiteral("flatpak"));
resource->setOrigin(QString::fromUtf8(flatpak_bundle_ref_get_origin(bundleRef)));
resource->setOrigin(origin.isEmpty() ? i18n("Local bundle") : origin);
resource->setResourceFile(url);
resource->setState(FlatpakResource::None);
resource->setType(FlatpakResource::DesktopApp);
......
Markdown is supported
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