Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
cb492acc
Commit
cb492acc
authored
Jan 29, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't let the fact that a backend is fetching block all backends
BUG: 389072
parent
1305ba64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
libdiscover/resources/ResourcesModel.cpp
libdiscover/resources/ResourcesModel.cpp
+2
-4
No files found.
libdiscover/resources/ResourcesModel.cpp
View file @
cb492acc
...
...
@@ -72,9 +72,6 @@ void ResourcesModel::init(bool load)
m_updateAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"system-software-update"
)));
m_updateAction
->
setText
(
i18nc
(
"@action Checks the Internet for updates"
,
"Check for Updates"
));
m_updateAction
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_R
));
connect
(
this
,
&
ResourcesModel
::
fetchingChanged
,
m_updateAction
,
[
this
](
bool
fetching
)
{
m_updateAction
->
setEnabled
(
!
fetching
);
});
connect
(
m_updateAction
,
&
QAction
::
triggered
,
this
,
&
ResourcesModel
::
checkForUpdates
);
}
...
...
@@ -343,7 +340,8 @@ AbstractResource* ResourcesModel::resourceForFile(const QUrl& file)
void
ResourcesModel
::
checkForUpdates
()
{
for
(
auto
backend
:
qAsConst
(
m_backends
))
backend
->
checkForUpdates
();
if
(
!
backend
->
isFetching
())
backend
->
checkForUpdates
();
}
QVector
<
AbstractResourcesBackend
*>
ResourcesModel
::
applicationBackends
()
const
...
...
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