Skip to content

Commit

Permalink
fix: correctly detect if info button is visible
Browse files Browse the repository at this point in the history
fixes #6
  • Loading branch information
FlafyDev committed Apr 11, 2024
1 parent 02760da commit 0dcafdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/custom_song_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct ANCustomSongWidget : geode::Modify<ANCustomSongWidget, CustomSongWidget>
}
if (m_fields->m_nongMenu != nullptr) {
// Different position if info button is visible...
if (m_songs.size() > 1 || m_sfx.size() > 1) {
if (m_songs.size() > 1 || m_sfx.size() > 0) {
m_fields->m_nongMenu->setPosition(ccp(116.f, 30.f));
} else {
m_fields->m_nongMenu->setPosition(ccp(135.f, 28.f));
Expand Down

0 comments on commit 0dcafdd

Please sign in to comment.