Settings: omit outputing Collapsed=0 in .ini file. Changelog + docs tweaks

This commit is contained in:
ocornut
2023-10-20 17:04:51 +02:00
parent 8ee85137d8
commit 313676d200
3 changed files with 23 additions and 22 deletions

View File

@ -13351,7 +13351,8 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandl
buf->appendf("[%s][%s]\n", handler->TypeName, settings_name);
buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y);
buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y);
buf->appendf("Collapsed=%d\n", settings->Collapsed);
if (settings->Collapsed)
buf->appendf("Collapsed=1\n");
buf->append("\n");
}
}