Skip to content

Commit

Permalink
Remove search prompt (#1)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
at4pm and hiimjasmine00 authored Aug 8, 2024
1 parent 9407b9e commit 55e000b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/SearchHistoryNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 55e000b

Please sign in to comment.