Skip to content

Commit 3eb9777

Browse files
committed
dammit zilko
1 parent 1e88eb1 commit 3eb9777

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Menu Loop Randomizer Changelog
2+
## v1.11.1
3+
- Hotfix.
24
## v1.11.0
35
***__This is a really lengthy changelog; be sure to read everything!__***
46
*(Changelog items/subitems containing <cl>blue</c> or <cj>cyan</c> text indicates that [Better Touch Prio](mod:alk.better-touch-prio) is required to use that feature. These decisions will not be reverted anytime soon.)*

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ios": "2.2074",
77
"android": "2.2074"
88
},
9-
"version": "v1.11.0",
9+
"version": "v1.11.1",
1010
"id": "elnexreal.menuloop_randomizer",
1111
"name": "Menu Loop Randomizer",
1212
"developers": [

src/ui/SongListLayer.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ bool SongListLayer::setup(const std::string&) {
211211
inputNode->setMaxLabelScale(.5f);
212212
inputNode->setID("song-list-search-bar-input-node"_spr);
213213

214-
SongListLayer::displayCurrentSongByLimitingPlaceholderLabelWidth(inputNode);
215-
216214
CCLayerColor* searchBarDivider = CCLayerColor::create({0, 0, 0, 127});
217215
searchBarDivider->setContentSize({350.f, .5f});
218216
searchBarDivider->setAnchorPoint({0.f, 0.f});
@@ -409,7 +407,6 @@ void SongListLayer::onSettingsButton(CCObject*) {
409407

410408
void SongListLayer::onShuffleButton(CCObject*) {
411409
SongControl::shuffleSong();
412-
if (const SongManager& songManager = SongManager::get(); SEARCH_BAR_ENABLED && GET_SEARCH_BAR_NODE) LIMIT_PLACEHOLDER
413410
}
414411

415412
void SongListLayer::onCopyButton(CCObject*) {
@@ -664,6 +661,6 @@ unsigned int SongListLayer::getLength(const std::string& path, const bool revers
664661
}
665662

666663
void SongListLayer::update(float) {
667-
if (SEARCH_BAR_DISABLED) return;
664+
if (SEARCH_BAR_DISABLED || !GET_SEARCH_BAR_NODE) return;
668665
SongListLayer::displayCurrentSongByLimitingPlaceholderLabelWidth(static_cast<geode::TextInput*>(GET_SEARCH_BAR_NODE)->getInputNode());
669666
}

0 commit comments

Comments
 (0)