Tables: avoid forcing a settings load on count change. (#9108)

At this very moment, I don't have a specific need/use for it. Went into this direction with solving the bigger problem, and it seems right but is not hard required right now.
This commit is contained in:
ocornut
2026-06-18 18:06:10 +02:00
parent 7930405c73
commit b9cf21733d

View File

@@ -578,7 +578,7 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
if (table->RawData == NULL)
{
TableBeginInitMemory(table, columns_count);
table->IsInitializing = table->IsSettingsRequestLoad = true;
table->IsInitializing = true;
}
if (table->IsResetAllRequest)
TableResetSettings(table);
@@ -586,7 +586,10 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
{
// Initialize
if (is_new_table)
{
table->SettingsOffset = -1;
table->IsSettingsRequestLoad = true;
}
table->IsSortSpecsDirty = true;
table->IsSettingsDirty = true; // Records itself into .ini file even when in default state (#7934)
table->InstanceInteracted = -1;