Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember if window is closed/open in imgui.ini #5744

Closed
tmshaer opened this issue Oct 2, 2022 · 1 comment
Closed

Remember if window is closed/open in imgui.ini #5744

tmshaer opened this issue Oct 2, 2022 · 1 comment
Labels
settings .ini persistance

Comments

@tmshaer
Copy link

tmshaer commented Oct 2, 2022

Hi, is it possible to extend the imgui.ini file to include the open/close state of a window?

Something like this:

[Window][Documentation]
Pos=1177,271
Size=500,600
Collapsed=0
Open=0

Thanks.

@ocornut ocornut added the settings .ini persistance label Oct 4, 2022
@ocornut
Copy link
Owner

ocornut commented Oct 4, 2022

No it isn't.
This would be akin to provide a helper serialization system for the user (#437) which isn't out of question but is largely not a priority. We'll keeping #437 open for that reason.

That "open" bool would need to drive the flow of your code and you'll inevitably want to manipulate its value yourself, at which point it becomes bizarre and redundant to store it as part of .ini data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
settings .ini persistance
Projects
None yet
Development

No branches or pull requests

2 participants