Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
ff36b2a2
Commit
ff36b2a2
authored
Dec 15, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
flatpak: Properly filter installed apps
BUG: 446501
parent
b2d7bd8a
Pipeline
#110174
passed with stage
in 1 minute and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
View file @
ff36b2a2
...
...
@@ -1342,7 +1342,7 @@ ResultsStream *FlatpakBackend::search(const AbstractResourcesBackend::Filters &f
return
stream
;
}
else
if
(
filter
.
state
==
AbstractResource
::
Installed
)
{
auto
stream
=
new
ResultsStream
(
QStringLiteral
(
"FlatpakStream-installed"
));
auto
f
=
[
this
,
stream
]
{
auto
f
=
[
this
,
stream
,
filter
]
{
QVector
<
AbstractResource
*>
resources
;
for
(
auto
installation
:
m_installations
)
{
g_autoptr
(
GError
)
localError
=
nullptr
;
...
...
@@ -1361,6 +1361,9 @@ ResultsStream *FlatpakBackend::search(const AbstractResourcesBackend::Filters &f
continue
;
auto
resource
=
getAppForInstalledRef
(
installation
,
ref
);
if
(
!
filter
.
search
.
isEmpty
()
&&
!
resource
->
name
().
contains
(
filter
.
search
,
Qt
::
CaseInsensitive
))
continue
;
if
(
resource
->
resourceType
()
==
FlatpakResource
::
Runtime
)
{
resources
.
prepend
(
resource
);
}
else
{
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
7043d9d4
·
Dec 15, 2021
mentioned in commit
7043d9d4
mentioned in commit 7043d9d44cc42f69d53a3198efb5f9b12589fbde
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment