Commit cb492acc authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't let the fact that a backend is fetching block all backends

BUG: 389072
parent 1305ba64
......@@ -72,9 +72,6 @@ void ResourcesModel::init(bool load)
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) {
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))
if (!backend->isFetching())
QVector<AbstractResourcesBackend *> ResourcesModel::applicationBackends() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment