Skip to content

Commit

Permalink
fix: prevent crash when closing old jumbotron
Browse files Browse the repository at this point in the history
  • Loading branch information
russmatney committed Feb 13, 2024
1 parent d720dbe commit 823af74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/core/Jumbotron.gd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static func jumbo_notif(opts):
jumbotron.set_control_icon()

jumbotron.jumbo_closed.connect(func():
if on_close:
if on_close and is_instance_valid(on_close.get_object()):
on_close.call()
if pause:
Navi.get_tree().paused = false
Expand Down

0 comments on commit 823af74

Please sign in to comment.