From f8023ba698417be29285080f3d047bdf93722e5f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 30 Jun 2024 20:12:08 +0200 Subject: [PATCH] Setup config before loading user data state that may want to overwrite it. --- profiler/src/profiler/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 8808d88c..d37fe92f 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -85,6 +85,8 @@ View::View( void(*cbMainThread)(const std::function&, bool), FileRead& f m_notificationText = std::string( "Trace loaded in " ) + TimeToString( m_worker.GetLoadTime() ); InitTextEditor(); + SetupConfig( config ); + m_vd.zvStart = m_worker.GetFirstTime(); m_vd.zvEnd = m_worker.GetLastTime(); m_userData.StateShouldBePreserved(); @@ -95,8 +97,6 @@ View::View( void(*cbMainThread)(const std::function&, bool), FileRead& f if( m_worker.GetCallstackFrameCount() == 0 ) m_showUnknownFrames = false; if( m_worker.GetCallstackSampleCount() == 0 ) m_showAllSymbols = true; - SetupConfig( config ); - Achieve( "loadTrace" ); }