forked from qt-creator/qt-creator
Axivion: Show progress indicator earlier
Especially for longer network communication there was no hint what is going on until e.g. some timeout error appeared on the General Messages. Start the progress indicator as soon the network communication starts. Fixes: QTCREATORBUG-31781 Change-Id: I5869f56fe998d25c52d3a0f8b81068600d521a48 Reviewed-by: Mohammad Mehdi Salem Naraghi <mehdi.salem@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -254,6 +254,7 @@ IssuesWidget::IssuesWidget(QWidget *parent)
|
||||
m_dashboardProjects->clear();
|
||||
}
|
||||
updateBasicProjectInfo(std::nullopt);
|
||||
m_issuesView->hideProgressIndicator();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -451,8 +452,10 @@ void IssuesWidget::reinitProjectList(const QString ¤tProject)
|
||||
{
|
||||
const auto onDashboardInfoFetched
|
||||
= [this, currentProject] (const expected_str<DashboardInfo> &info) {
|
||||
if (!info)
|
||||
if (!info) {
|
||||
m_issuesView->hideProgressIndicator();
|
||||
return;
|
||||
}
|
||||
GuardLocker lock(m_signalBlocker);
|
||||
m_dashboardProjects->addItems(info->projects);
|
||||
if (!currentProject.isEmpty() && info->projects.contains(currentProject))
|
||||
@@ -463,6 +466,9 @@ void IssuesWidget::reinitProjectList(const QString ¤tProject)
|
||||
m_dashboardProjects->clear();
|
||||
}
|
||||
updateBasicProjectInfo(std::nullopt);
|
||||
if (m_overlay)
|
||||
m_overlay->hide();
|
||||
m_issuesView->showProgressIndicator();
|
||||
fetchDashboardAndProjectInfo(onDashboardInfoFetched, currentProject);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user