Setup config before loading user data state that may want to overwrite it.

This commit is contained in:
Bartosz Taudul 2024-06-30 20:12:08 +02:00
parent 3c34d9d096
commit f8023ba698
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -85,6 +85,8 @@ View::View( void(*cbMainThread)(const std::function<void()>&, 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<void()>&, bool), FileRead& f
if( m_worker.GetCallstackFrameCount() == 0 ) m_showUnknownFrames = false;
if( m_worker.GetCallstackSampleCount() == 0 ) m_showAllSymbols = true;
SetupConfig( config );
Achieve( "loadTrace" );
}