Skip to content

Commit

Permalink
fix: default open not honored #1893 #1908
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Oct 17, 2022
1 parent baf34e7 commit caa79c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mvContainers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ DearPyGui::set_configuration(PyObject* inDict, mvTreeNodeConfig& outConfig)
return;

if (PyObject* item = PyDict_GetItemString(inDict, "selectable")) outConfig.selectable = ToBool(item);
if (PyObject* item = PyDict_GetItemString(inDict, "default_open")) *outConfig.value = ToBool(item);

// helper for bit flipping
auto flagop = [inDict](const char* keyword, int flag, int& flags)
Expand Down Expand Up @@ -331,6 +332,7 @@ DearPyGui::set_configuration(PyObject* inDict, mvCollapsingHeaderConfig& outConf
return;

if (PyObject* item = PyDict_GetItemString(inDict, "closable")) outConfig.closable = ToBool(item);
if (PyObject* item = PyDict_GetItemString(inDict, "default_open")) *outConfig.value = ToBool(item);

// helper for bit flipping
auto flagop = [inDict](const char* keyword, int flag, int& flags)
Expand Down

0 comments on commit caa79c4

Please # to comment.