summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Grulich <[email protected]>2017-03-08 13:33:59 +0100
committerJan Grulich <[email protected]>2017-03-08 13:33:59 +0100
commit2b33557e1f9b0c32094933e89bb53e4c70092cfb (patch)
tree2a679cd061fab2564eb6500b077f9043e158a5d3
parentf3bb914f21dc14a07f7f275dd38b45c740b8bb90 (diff)
Do not show repositories which are marked not to be listed
-rw-r--r--libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp b/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
index 793d928..51e66a0 100644
--- a/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
+++ b/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
@@ -107,6 +107,10 @@ bool FlatpakSourcesBackend::listRepositories(FlatpakInstallation* installation)
for (uint i = 0; i < remotes->len; i++) {
FlatpakRemote *remote = FLATPAK_REMOTE(g_ptr_array_index(remotes, i));
+ if (flatpak_remote_get_noenumerate(remote)) {
+ continue;
+ }
+
const QString id = QString::fromUtf8(flatpak_remote_get_name(remote));
const QString title = QString::fromUtf8(flatpak_remote_get_title(remote));