mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Crash when changing font size
This commit is contained in:
@@ -260,14 +260,13 @@ namespace hex::plugin::builtin {
|
||||
static int fontSize = static_cast<int>(setting);
|
||||
|
||||
ImGui::BeginDisabled(fontPath.empty());
|
||||
ON_SCOPE_EXIT { ImGui::EndDisabled(); };
|
||||
|
||||
if (ImGui::SliderInt(name.data(), &fontSize, 0, 100, "%d", ImGuiSliderFlags_NoInput)) {
|
||||
setting = fontSize;
|
||||
return true;
|
||||
}
|
||||
|
||||
ImGui::EndDisabled();
|
||||
|
||||
return false;
|
||||
},
|
||||
true);
|
||||
|
||||
Reference in New Issue
Block a user