Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk: http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.340.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.340 Author: mt Time: 18 April 2023, 2:32:09.744406 pm UUID: c7d228b6-0901-4e4f-9182-90485af5e492 Ancestors: ToolBuilder-Morphic-mt.339
In tree widgets, fixes issue with #isExpanded combined with #all filter mode. Also keep the current selection expanded when clearing an #all filter.
=============== Diff against ToolBuilder-Morphic-mt.339 ===============
Item was changed: ----- Method: PluggableTreeMorph>>collapseAllButSelection (in category 'filtering') ----- collapseAllButSelection "If the filterMode is set to #all, filtering will expand (and collapse) nodes. Thus, it is can be useful to collapse all nodes again but show the current selection to get an overview again when removing the filter." + | selectedPath wasExpanded | + autoExpand == true ifTrue: [^ self]. - | selectedPath | self fixateSelectionDuring: [ selectedPath := self selectedPath. + wasExpanded := selectedMorph notNil and: [selectedMorph isExpanded]. selectedMorph := selectedMorphIndex := nil. "Avoid selection update via #collapseAll. See #noteRemovalOfAll:." self collapseAll. + self selectedPath: selectedPath. + wasExpanded ifTrue: [self toggleExpandedState: selectedMorph]].! - self selectedPath: selectedPath].!
packages@lists.squeakfoundation.org