Revert "Catch exceptions thrown by graft* and ungraft* in the notify loop so that the gadgets' graft states remain consistent"
This reverts commit ca6247f3b3
.
db4
parent
1d7ba3363e
commit
8e2cc99d4e
|
@ -120,12 +120,12 @@ SYMBOL: ui-hook
|
||||||
[ dup update-hand draw-world ] each ;
|
[ dup update-hand draw-world ] each ;
|
||||||
|
|
||||||
: notify ( gadget -- )
|
: notify ( gadget -- )
|
||||||
dup gadget-graft-state [ dup {
|
dup gadget-graft-state {
|
||||||
{ { f t } [ over activate-control over graft* ] }
|
{ { f t } [ dup activate-control dup graft* ] }
|
||||||
{ { t f } [ over activate-control over ungraft* ] }
|
{ { t f } [ dup activate-control dup ungraft* ] }
|
||||||
} case ]
|
} case
|
||||||
[ first { f f } { t t } ?
|
dup gadget-graft-state first { f f } { t t } ?
|
||||||
swap set-gadget-graft-state ] [ ] cleanup ;
|
swap set-gadget-graft-state ;
|
||||||
|
|
||||||
: notify-queued ( -- )
|
: notify-queued ( -- )
|
||||||
graft-queue [ notify ] dlist-slurp ;
|
graft-queue [ notify ] dlist-slurp ;
|
||||||
|
|
Loading…
Reference in New Issue