`extends MenuButton
var popup
func ready():
popup = get_popup()
popup.add_item("item a")
popup.add_item("item b")
popup.add_item("item c")
popup.connect("id_pressed", self, "on_id_pressed")
func _on_id_pressed(ID):
print(popup.get_item_text(ID), " pressed")`
any clue why line 10 is give this error?
E 0:00:01:0348 FileButton.gd:10 @ _ready(): Cannot connect to 'id_pressed': the provided callable is null.
<C++ Error> Condition "p_callable.is_null()" is true. Returning: ERR_INVALID_PARAMETER
<C++ Source> core/object/object.cpp:1257 @ connect()
<Stack Trace> FileButton.gd:10 @ _ready()