Save imgui.ini to %APPDATA%\UsdLayerManager\ instead of CWD

Sets io.IniFilename to %APPDATA%\UsdLayerManager\imgui.ini right after
CreateContext so ImGui never touches the working directory for layout
persistence. The directory is created on first run via create_directories.
m_iniFilePath on ImGuiContext holds the string so the pointer stays valid
for the lifetime of the context.

Also removes imgui.ini from version control and adds it to .gitignore.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-24 20:36:25 +08:00
parent 08f4bd351b
commit ab934d0818
4 changed files with 14 additions and 62 deletions
+3
View File
@@ -72,3 +72,6 @@ desktop.ini
# Temporary files
*.tmp
*.temp
# ImGui layout (saved to %APPDATA%\UsdLayerManager at runtime)
imgui.ini