Only show dict building checkbox if there are frame images.

This commit is contained in:
Bartosz Taudul 2021-05-15 15:52:54 +02:00
parent 3d75bf653a
commit 56958a018c
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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" ) )