summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Grulich <[email protected]>2017-04-12 13:17:04 +0200
committerJan Grulich <[email protected]>2017-04-12 13:17:04 +0200
commite462516a14a6bcf385635898e19d8ddd940ebd54 (patch)
tree54def90fed50c653bf7cf57789757e93adc5a689
parent0b20c6884b0d1cba71b5cdb2c63de81c1d7f7d49 (diff)
Flatpak backend: set that we already know information about size for bundles
-rw-r--r--libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp b/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
index da4800d..04ce6b8 100644
--- a/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
+++ b/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
@@ -297,7 +297,10 @@ FlatpakResource * FlatpakBackend::addAppFromFlatpakBundle(const QUrl &url)
resource->setBundledIcon(pixmap);
}
+ 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->setResourceFile(url);