Skip to content

Commit

Permalink
Merge pull request #280 from janezd/dynamic-lazy-signals
Browse files Browse the repository at this point in the history
Evaluate values of dynamic signals before type checking
  • Loading branch information
PrimozGodec authored Sep 22, 2023
2 parents 02c70d2 + 3b84ad9 commit 75ec236
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orangecanvas/scheme/signalmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,8 @@ def can_enable_dynamic(link, value):
"""
Can the a dynamic `link` (:class:`SchemeLink`) be enabled for`value`.
"""
if LazyValue.is_lazy(value):
value = value.get_value()
return isinstance(value, link.sink_types())


Expand Down

0 comments on commit 75ec236

Please sign in to comment.