ui.gadgets.slots: rewrite 'display-slot'
parent
4bce4db2f7
commit
b01bd3a032
|
@ -96,8 +96,10 @@ TUPLE: editable-slot < track printer ref ;
|
||||||
<roll-button> ;
|
<roll-button> ;
|
||||||
|
|
||||||
: display-slot ( gadget editable-slot -- )
|
: display-slot ( gadget editable-slot -- )
|
||||||
dup clear-track
|
dup clear-track
|
||||||
[ 1 track, <edit-button> f track, ] with-gadget ;
|
swap 1 track-add*
|
||||||
|
<edit-button> f track-add*
|
||||||
|
drop ;
|
||||||
|
|
||||||
: update-slot ( editable-slot -- )
|
: update-slot ( editable-slot -- )
|
||||||
[ [ ref>> get-ref ] [ printer>> ] bi call ] keep
|
[ [ ref>> get-ref ] [ printer>> ] bi call ] keep
|
||||||
|
|
Loading…
Reference in New Issue