Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix imgui delete function
  • Loading branch information
jimwang118 committed Aug 17, 2023
commit 9bd70dcda45540badcea6bb64bcb2e3bb36d33e1
6 changes: 3 additions & 3 deletions tools/k4aviewer/k4adevicedockcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ K4ADockControlStatus K4ADeviceDockControl::Show()

if (m_firstRun || depthEnabledStateChanged)
{
ImGui::SetNextTreeNodeOpen(m_config.EnableDepthCamera);
ImGui::SetNextItemOpen(m_config.EnableDepthCamera);
}

ImGui::Indent();
Expand Down Expand Up @@ -376,7 +376,7 @@ K4ADockControlStatus K4ADeviceDockControl::Show()

if (m_firstRun || colorEnableStateChanged)
{
ImGui::SetNextTreeNodeOpen(m_config.EnableColorCamera);
ImGui::SetNextItemOpen(m_config.EnableColorCamera);
}

ImGui::Indent();
Expand Down Expand Up @@ -710,7 +710,7 @@ K4ADockControlStatus K4ADeviceDockControl::Show()

if (m_firstRun && (m_syncInConnected || m_syncOutConnected))
{
ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
}
if (ImGui::TreeNode("External Sync"))
{
Expand Down