You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented loading of ini during runtime to support storing and restoring of layouts in my app some months ago. Before calling NewFrame I am loading ini settings via LoadIniSettingsFromMemory before BeginFrame and it works quite OK, but there's one problem:
When ini layout is loaded sometimes HideTabBar setting is not applied to a DockNode, i.e. even though DockNode has HideTabBar set in the ini file, it is not updated after ini load. Consecutive load of ini file after frame is rendered sets that flag correctly.
In this example video I have ini loaded called "Screen" with the HideTabBar flag set to "C64 Screen" (DockNode 0x000E), and then I switch layouts and I am loading ini called "Debugger". That works OK, then I am loading back "Screen" and the HideTabBar flag is not set even though it is set in the ini file, that's not correct. Then I am again loading "Screen" and it is set properly. The ini file has the same contents and is not being changed/replaced, i.e. I always load the same ini file data.
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
v1.90.1 WIP, Branch: docking commit 96b5b17
Back-ends:
imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
macOS
Full config/build information:
Details:
I implemented loading of ini during runtime to support storing and restoring of layouts in my app some months ago. Before calling NewFrame I am loading ini settings via LoadIniSettingsFromMemory before BeginFrame and it works quite OK, but there's one problem:
When ini layout is loaded sometimes HideTabBar setting is not applied to a DockNode, i.e. even though DockNode has HideTabBar set in the ini file, it is not updated after ini load. Consecutive load of ini file after frame is rendered sets that flag correctly.
Reference #2573
I explored source code of ImGui a bit and this may be related to node->WantHiddenTabBarToggle not being populated or respected somewhere.
Screenshots/Video:
Example video: https://www.youtube.com/watch?v=M284CHNAgzY
Example ini from the video above: imgui-ini-hidetabbar.txt
In this example video I have ini loaded called "Screen" with the HideTabBar flag set to "C64 Screen" (DockNode 0x000E), and then I switch layouts and I am loading ini called "Debugger". That works OK, then I am loading back "Screen" and the HideTabBar flag is not set even though it is set in the ini file, that's not correct. Then I am again loading "Screen" and it is set properly. The ini file has the same contents and is not being changed/replaced, i.e. I always load the same ini file data.
The text was updated successfully, but these errors were encountered: