From 56958a018cbf1708fb9adbe561f12046d2d100fa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 15 May 2021 15:52:54 +0200 Subject: [PATCH] Only show dict building checkbox if there are frame images. --- server/TracyView.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7df2d5f0..9c332c5a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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" ) )