ui.tools.workspace: update find-tool
parent
fd7f3423ed
commit
7c0fe0cf05
|
@ -28,7 +28,7 @@ GENERIC: tool-scroller ( tool -- scroller )
|
|||
M: gadget tool-scroller drop f ;
|
||||
|
||||
: find-tool ( class workspace -- index tool )
|
||||
workspace-book gadget-children [ class eq? ] with find ;
|
||||
book>> children>> [ class eq? ] with find ;
|
||||
|
||||
: show-tool ( class workspace -- tool )
|
||||
[ find-tool swap ] keep workspace-book gadget-model
|
||||
|
|
Loading…
Reference in New Issue