Skip to content
GitLab
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
434d3155
Commit
434d3155
authored
Nov 30, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
pk: Emit sizeChanged when size changes
parent
f191efb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/PackageKitBackend/PackageKitResource.cpp
View file @
434d3155
...
...
@@ -196,6 +196,7 @@ void PackageKitResource::setDetails(const PackageKit::Details & details)
if
(
m_details
!=
details
)
{
const
auto
oldState
=
state
();
const
auto
oldSize
=
size
();
m_details
=
details
;
if
(
oldState
!=
state
())
...
...
@@ -203,6 +204,10 @@ void PackageKitResource::setDetails(const PackageKit::Details & details)
if
(
!
backend
()
->
isFetching
())
Q_EMIT
backend
()
->
resourcesChanged
(
this
,
{
"size"
,
"homepage"
,
"license"
});
if
(
oldSize
!=
size
())
{
Q_EMIT
sizeChanged
();
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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