ecode: Fix tools menu click bind.

This commit is contained in:
Martín Lucas Golini
2022-07-27 01:36:07 -03:00
parent b91028faa5
commit d078108b96

View File

@@ -2454,7 +2454,7 @@ UIPopUpMenu* App::createToolsMenu() {
if ( !event->getNode()->isType( UI_TYPE_MENUITEM ) )
return;
UIMenuItem* item = event->getNode()->asType<UIMenuItem>();
std::string id( item->getText() );
std::string id( item->getId() );
if ( id == "open-locatebar" ) {
mFileLocator->showLocateBar();
} else if ( id == "open-global-search" ) {