From 55e000bbc2c696afef6f0adf8393643f940eb148 Mon Sep 17 00:00:00 2001 From: ata Date: Fri, 9 Aug 2024 00:32:05 +1000 Subject: [PATCH] Remove search prompt (#1) * Remove search prompt im not sure if this would work but it removes the popup saying "Are you sure you would like to search?" or something * make it work --------- Co-authored-by: Justin <52604018+hiimjustin000@users.noreply.github.com> --- src/SearchHistoryNode.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SearchHistoryNode.cpp b/src/SearchHistoryNode.cpp index b20988b..3e51b33 100644 --- a/src/SearchHistoryNode.cpp +++ b/src/SearchHistoryNode.cpp @@ -74,11 +74,7 @@ bool SearchHistoryNode::init(SearchHistoryObject const& object, int index, Searc removeButton->setPosition(queryLabel->getScaledContentSize().width + 120.0f, queryLabel->getPositionY()); buttonMenu->addChild(removeButton); - auto searchButton = CCMenuItemExt::createSpriteExtraWithFrameName("GJ_undoBtn_001.png", 0.6f, [this](auto) { - createQuickPopup("Search", "Are you sure you want to search with this query?", "No", "Yes", [this](auto, bool btn2) { - if (btn2) m_searchCallback(m_object); - }); - }); + auto searchButton = CCMenuItemExt::createSpriteExtraWithFrameName("GJ_undoBtn_001.png", 0.6f, [this](auto) { m_searchCallback(m_object); }); searchButton->setPosition(queryLabel->getScaledContentSize().width + 150.0f, queryLabel->getPositionY()); buttonMenu->addChild(searchButton);