forked from qt-creator/qt-creator
UpdateInfo: Fix never ending progress spinner in settings
When searching for updates from the settings page. We need to always send the signal that the search finished. Fixes: QTCREATORBUG-28745 Change-Id: Ia4c764081916fdde4175799ab6d74fb7c4045810 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -192,6 +192,8 @@ void UpdateInfoPlugin::startCheckForUpdates()
|
|||||||
|
|
||||||
void UpdateInfoPlugin::stopCheckForUpdates()
|
void UpdateInfoPlugin::stopCheckForUpdates()
|
||||||
{
|
{
|
||||||
|
emit checkForUpdatesRunningChanged(false);
|
||||||
|
|
||||||
if (!d->m_maintenanceToolProcess)
|
if (!d->m_maintenanceToolProcess)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -199,7 +201,6 @@ void UpdateInfoPlugin::stopCheckForUpdates()
|
|||||||
d->m_maintenanceToolProcess.reset();
|
d->m_maintenanceToolProcess.reset();
|
||||||
d->m_updateOutput.clear();
|
d->m_updateOutput.clear();
|
||||||
d->m_packagesOutput.clear();
|
d->m_packagesOutput.clear();
|
||||||
emit checkForUpdatesRunningChanged(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void showUpdateInfo(const QList<Update> &updates, const std::function<void()> &startUpdater)
|
static void showUpdateInfo(const QList<Update> &updates, const std::function<void()> &startUpdater)
|
||||||
|
Reference in New Issue
Block a user