mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
disable the search clear button if there is no search
This commit is contained in:
parent
81d5dc0cae
commit
ab9654a596
1 changed files with 1 additions and 0 deletions
|
@ -577,6 +577,7 @@ void ModList::updateState() {
|
|||
filterSpr->setState(!isDefaultQuery);
|
||||
|
||||
auto clearSpr = static_cast<GeodeSquareSprite*>(m_clearFiltersBtn->getNormalImage());
|
||||
m_clearFiltersBtn->setEnabled(!isDefaultQuery);
|
||||
clearSpr->setColor(isDefaultQuery ? ccGRAY : ccWHITE);
|
||||
clearSpr->setOpacity(isDefaultQuery ? 90 : 255);
|
||||
clearSpr->getTopSprite()->setColor(isDefaultQuery ? ccGRAY : ccWHITE);
|
||||
|
|
Loading…
Reference in a new issue