From 3b2d97ab21428274ef11de30a6fc5ecbc1ecedad Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 10 Jul 2026 17:41:36 +0200 Subject: [PATCH] Set filename when saving a trace to disk. --- profiler/src/profiler/TracyView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 0280817d..7b755c5c 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -1485,6 +1485,9 @@ bool View::Save( const char* fn, FileCompression comp, int zlevel, bool buildDic std::unique_ptr f( FileWrite::Open( fn, comp, zlevel, streams ) ); if( !f ) return false; + m_filename = fn; + if( m_stcb ) UpdateTitle(); + m_userData.StateShouldBePreserved(); m_userData.SetFilePath( fn ); m_saveThreadState.store( SaveThreadState::Saving, std::memory_order_relaxed );