1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use common functionality to get frame set name.

This commit is contained in:
Bartosz Taudul
2022-07-30 19:32:25 +02:00
parent 92871ba75a
commit b19f9e1f4d
8 changed files with 39 additions and 14 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ void View::DrawOptions()
for( const auto& fd : m_worker.GetFrames() )
{
ImGui::PushID( idx++ );
SmallCheckbox( fd->name == 0 ? "Frames" : m_worker.GetString( fd->name ), &Vis( fd ).visible );
SmallCheckbox( GetFrameSetName( *fd ), &Vis( fd ).visible );
ImGui::PopID();
ImGui::SameLine();
ImGui::TextDisabled( "%s %sframes", RealToString( fd->frames.size() ), fd->continuous ? "" : "discontinuous " );