Select Zstd compression when Zstd level is changed.

This commit is contained in:
Bartosz Taudul 2021-06-20 00:25:30 +02:00
parent 80e1b0c2cf
commit 3cc69b221e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -647,7 +647,10 @@ bool View::Draw()
ImGui::SameLine();
TextDisabledUnformatted( "Increasing level decreases file size, but increases save and load times" );
ImGui::Indent();
ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp );
if( ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp ) )
{
comp = FileWrite::Compression::Zstd;
}
ImGui::Unindent();
static bool buildDict = false;