Skip to content

Commit d5e4554

Browse files
committed
one last thing
1 parent 24f1d39 commit d5e4554

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/SongListLayer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,13 @@ bool SongListLayer::setup(const std::string&) {
396396

397397
songManager.resetTowerRepeatCount();
398398

399-
this->scheduleUpdate();
399+
if (SEARCH_BAR_ENABLED) this->scheduleUpdate();
400400

401401
return true;
402402
}
403403

404404
void SongListLayer::searchSongs(const std::string& queryString) {
405+
if (SONG_SORTING_DISABLED && SEARCH_BAR_DISABLED) return;
405406
CCNode* contentLayer = SongListLayer::getContentLayer();
406407
if (!contentLayer || !contentLayer->getLayout()) return;
407408
contentLayer->removeAllChildrenWithCleanup(true);

0 commit comments

Comments
 (0)