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
64cfcfba
Commit
64cfcfba
authored
Apr 15, 2021
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Apr 15, 2021
Browse files
rpm-ostree: Simplify toggle fetching state
Keep it local to the function that fetches so it's clear when it's done.
parent
33d31c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/RpmOstreeBackend/RpmOstreeBackend.cpp
View file @
64cfcfba
...
...
@@ -152,6 +152,7 @@ void RpmOstreeBackend::executeCheckUpdateProcess()
QByteArray
readError
=
process
->
readAllStandardError
();
});
toggleFetching
();
// delete process instance when done, and get the exit status to handle errors.
connect
(
process
,
QOverload
<
int
,
QProcess
::
ExitStatus
>::
of
(
&
QProcess
::
finished
),
[
this
,
process
](
int
exitCode
,
QProcess
::
ExitStatus
exitStatus
)
{
qWarning
()
<<
"process exited with code "
<<
exitCode
<<
exitStatus
;
...
...
@@ -288,7 +289,6 @@ void RpmOstreeBackend::checkForUpdates()
return
;
executeCheckUpdateProcess
();
executeRemoteRefsProcess
();
QTimer
::
singleShot
(
500
,
this
,
&
RpmOstreeBackend
::
toggleFetching
);
}
void
RpmOstreeBackend
::
perfromSystemUpgrade
(
QString
selectedRefs
)
...
...
Write
Preview
Supports
Markdown
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