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
14190aea
Commit
14190aea
authored
Jan 17, 2022
by
Aleix Pol Gonzalez
🐧
Browse files
Only check for configuration changes when the ones we care about change
BUG: 447939
parent
2c1cfe48
Pipeline
#124930
passed with stage
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/resources/ResourcesUpdatesModel.cpp
View file @
14190aea
...
...
@@ -154,7 +154,12 @@ void ResourcesUpdatesModel::init()
m_offlineUpdates
=
group
.
readEntry
<
bool
>
(
"UseOfflineUpdates"
,
false
);
KConfigWatcher
::
Ptr
watcher
=
KConfigWatcher
::
create
(
sharedConfig
);
connect
(
watcher
.
data
(),
&
KConfigWatcher
::
configChanged
,
[
=
]()
{
connect
(
watcher
.
data
(),
&
KConfigWatcher
::
configChanged
,
[
this
](
const
KConfigGroup
&
group
,
const
QByteArrayList
&
names
)
{
// Ensure it is for the right file
if
(
!
names
.
contains
(
"UseOfflineUpdates"
)
||
group
.
name
()
!=
"Software"
)
{
return
;
}
if
(
m_offlineUpdates
==
group
.
readEntry
<
bool
>
(
"UseOfflineUpdates"
,
false
))
{
return
;
}
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
5f24528d
·
Jan 17, 2022
mentioned in commit
5f24528d
mentioned in commit 5f24528d386f879a0dada982b4dcb3b7c56b2051
Toggle commit list
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