Connected the pressed signal from the editor to a method I defined in my C++ class, but it's never triggered

Godot Version

4.4

Question

i have this code which i connect the signal from the editor:

#include "player_manubase.h"
#include <godot_cpp/classes/input.hpp>
#include "config/bulletin_config.h"
#include "event_system.h"
#include "input_util.h"


void PlayerMenuBase::_ready()
{
    Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);  
    eventSystem = input_utils::getEventSystem();
    
}

void PlayerMenuBase::close()
{
    if(eventSystem)
    {
        eventSystem->emitDestroyBulletin(bulletin::Keys::CarftingMenu);
    }
    Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_CAPTURED);
   
}

void PlayerMenuBase::_bind_methods()
{
    ClassDB::bind_method(D_METHOD("onButtonPressed"), &PlayerMenuBase::onButtonPressed);
}

void PlayerMenuBase::onButtonPressed()
{
    close();

}

this is how i connect the signal from editor :

but when clicking the “x” button it never trigger the onButtonPressed method
how can i debug it or check what is wrong ?