mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Only show dict building checkbox if there are frame images.
This commit is contained in:
parent
3d75bf653a
commit
56958a018c
@ -657,11 +657,14 @@ bool View::Draw()
|
||||
ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp );
|
||||
ImGui::Unindent();
|
||||
|
||||
ImGui::Separator();
|
||||
static bool buildDict = false;
|
||||
ImGui::Checkbox( "Build frame images dictionary", &buildDict );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( "Decreases run-time memory requirements" );
|
||||
if( s_instance->m_worker.GetFrameImageCount() != 0 )
|
||||
{
|
||||
ImGui::Separator();
|
||||
ImGui::Checkbox( "Build frame images dictionary", &buildDict );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( "Decreases run-time memory requirements" );
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
if( ImGui::Button( ICON_FA_SAVE " Save trace" ) )
|
||||
|
Loading…
Reference in New Issue
Block a user