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
f191efb8
Commit
f191efb8
authored
Nov 30, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
Properly detect if PK_OFFLINE_UPDATE is set
Otherwise PK_OFFLINE_UPDATE=0 will also be true, which is weird.
parent
c6cbdee5
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
View file @
f191efb8
...
...
@@ -162,7 +162,7 @@ void PackageKitUpdater::proceed()
bool
PackageKitUpdater
::
useOfflineUpdates
()
const
{
if
(
qEnvironmentVariableI
sSet
(
"PK_OFFLINE_UPDATE"
))
if
(
qEnvironmentVariableI
ntValue
(
"PK_OFFLINE_UPDATE"
))
return
true
;
KConfigGroup
group
(
KSharedConfig
::
openConfig
(),
"Software"
);
return
group
.
readEntry
<
bool
>
(
"UseOfflineUpdates"
,
false
);
...
...
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