mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[traff_assessment_tool] Hide progress bar only on final update
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -314,7 +314,7 @@ TrafficModel::TrafficModel(Framework & framework,
|
||||
* imminent. Such updates should always be processed. If final is false, we can optimize by
|
||||
* selectively skipping updates.
|
||||
*/
|
||||
GetPlatform().RunTask(Platform::Thread::Gui, [this, &framework]()
|
||||
GetPlatform().RunTask(Platform::Thread::Gui, [this, &framework, final]()
|
||||
{
|
||||
beginResetModel();
|
||||
auto const messageCache = framework.GetTrafficManager().GetMessageCache();
|
||||
@@ -332,7 +332,7 @@ TrafficModel::TrafficModel(Framework & framework,
|
||||
editSession.SetIsVisible(UserMark::Type::COLORED, false);
|
||||
|
||||
// restore QDockWidget title
|
||||
if (m_mainWindow.GetDockWidget())
|
||||
if (final && m_mainWindow.GetDockWidget())
|
||||
m_mainWindow.GetDockWidget()->setTitleBarWidget(nullptr);
|
||||
|
||||
LOG(LINFO, ("Messages:", m_messages.size()));
|
||||
|
||||
Reference in New Issue
Block a user