@ -12545,9 +12545,7 @@ void ImGui::TreePop()
if ( g . NavMoveDir = = ImGuiDir_Left & & g . NavWindow = = window & & NavMoveRequestButNoResultYet ( ) )
if ( g . NavMoveDir = = ImGuiDir_Left & & g . NavWindow = = window & & NavMoveRequestButNoResultYet ( ) )
if ( g . NavIdIsAlive & & ( window - > DC . TreeDepthMayCloseOnPop & ( 1 < < window - > DC . TreeDepth ) ) )
if ( g . NavIdIsAlive & & ( window - > DC . TreeDepthMayCloseOnPop & ( 1 < < window - > DC . TreeDepth ) ) )
{
{
ImGuiID id = window - > IDStack . back ( ) ;
SetNavID ( window - > IDStack . back ( ) , g . NavLayer ) ;
window - > DC . StateStorage - > SetBool ( id , false ) ;
SetNavID ( id , g . NavLayer ) ;
NavMoveRequestCancel ( ) ;
NavMoveRequestCancel ( ) ;
}
}
window - > DC . TreeDepthMayCloseOnPop & = ( 1 < < window - > DC . TreeDepth ) - 1 ;
window - > DC . TreeDepthMayCloseOnPop & = ( 1 < < window - > DC . TreeDepth ) - 1 ;