impr: Further optimize ImGui text rendering

This commit is contained in:
WerWolv
2024-06-27 17:09:20 +02:00
parent 7d42742684
commit e5c782ebe9
5 changed files with 40 additions and 15 deletions

View File

@@ -325,7 +325,7 @@ namespace hex {
// Plugin load error popups
// These are not translated because they should always be readable, no matter if any localization could be loaded or not
{
auto drawPluginFolderTable = [] {
const static auto drawPluginFolderTable = [] {
ImGuiExt::UnderlinedText("Plugin folders");
if (ImGui::BeginTable("plugins", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_ScrollY | ImGuiTableFlags_SizingFixedFit, ImVec2(0, 100_scaled))) {
ImGui::TableSetupScrollFreeze(0, 1);