if onImage (the up/down arrow, not to be confused with the class icon) go ahead and open/close the tree view wether we're selected or not
This commit is contained in:
AzaezelX 2026-01-30 10:34:19 -06:00
parent 476ed66932
commit 8874c250da

View file

@ -3519,7 +3519,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
return;
//
if ((mFullRowSelect || hitFlags.test(OnImage)) && wasSelected)
if (hitFlags.test(OnImage) || ((mFullRowSelect || hitFlags.test(OnIcon)) && wasSelected))
{
item->setExpanded(!item->isExpanded());
if( !item->isInspectorData() && item->mState.test(Item::VirtualParent) )