diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-10 23:55:56 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-10 23:55:56 +0300 |
commit | c9adadf86a6e430509f522df5ba32a94b1d969a3 (patch) | |
tree | 90903b94226fad3263465c3f7869489d53b01ce8 | |
parent | 4f3f0e1aae5085d8a30c946827ba3d470dbe8998 (diff) |
When opening a new trace, set view to whole time span.
-rw-r--r-- | server/TracyView.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 68a48307..9a871f40 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -96,7 +96,8 @@ View::View( void(*cbMainThread)(std::function<void()>, bool), FileRead& f, ImFon InitMemory(); InitTextEditor( fixedWidth ); - SetViewToLastFrames(); + m_vd.zvStart = 0; + m_vd.zvEnd = m_worker.GetLastTime(); m_userData.StateShouldBePreserved(); m_userData.LoadState( m_vd ); m_userData.LoadAnnotations( m_annotations ); |