Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

fix imgui delete function #1945

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
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
2 changes: 1 addition & 1 deletion tools/k4aviewer/k4asourceselectiondockcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ K4ASourceSelectionDockControl::K4ASourceSelectionDockControl()

K4ADockControlStatus K4ASourceSelectionDockControl::Show()
{
ImGui::SetNextTreeNodeOpen(true, ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(true, ImGuiCond_FirstUseEver);
if (ImGui::TreeNode("Open Device"))
{
ImGuiExtensions::K4AComboBox("Device S/N",
Expand Down