[traff_assessment_tool] Hide progress bar only on final update

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-10-21 00:04:34 +03:00
parent 800cc0641b
commit ae23afd72e

View File

@@ -314,7 +314,7 @@ TrafficModel::TrafficModel(Framework & framework,
* imminent. Such updates should always be processed. If final is false, we can optimize by * imminent. Such updates should always be processed. If final is false, we can optimize by
* selectively skipping updates. * selectively skipping updates.
*/ */
GetPlatform().RunTask(Platform::Thread::Gui, [this, &framework]() GetPlatform().RunTask(Platform::Thread::Gui, [this, &framework, final]()
{ {
beginResetModel(); beginResetModel();
auto const messageCache = framework.GetTrafficManager().GetMessageCache(); auto const messageCache = framework.GetTrafficManager().GetMessageCache();
@@ -332,7 +332,7 @@ TrafficModel::TrafficModel(Framework & framework,
editSession.SetIsVisible(UserMark::Type::COLORED, false); editSession.SetIsVisible(UserMark::Type::COLORED, false);
// restore QDockWidget title // restore QDockWidget title
if (m_mainWindow.GetDockWidget()) if (final && m_mainWindow.GetDockWidget())
m_mainWindow.GetDockWidget()->setTitleBarWidget(nullptr); m_mainWindow.GetDockWidget()->setTitleBarWidget(nullptr);
LOG(LINFO, ("Messages:", m_messages.size())); LOG(LINFO, ("Messages:", m_messages.size()));