Skip to content

Commit 6a3981c

Browse files
committed
im an idot
1 parent 749f91f commit 6a3981c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ui/SongControlMenu.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,17 @@ void SongControlMenu::checkDaSongPositions(float) {
247247
if (!this->m_currTimeLb || !this->m_totlTimeLb || !this->m_currProgBar || !this->m_darkProgBar) return;
248248

249249
SongManager& songManager = SongManager::get();
250-
if (!songManager.getFinishedCalculatingSongLengths()) return;
250+
const bool finished = songManager.getFinishedCalculatingSongLengths();
251+
252+
this->m_currTimeLb->setVisible(finished);
253+
this->m_totlTimeLb->setVisible(finished);
254+
this->m_currProgBar->setVisible(finished);
255+
this->m_darkProgBar->setVisible(finished);
256+
if (this->m_increDecreMenu) this->m_increDecreMenu->setVisible(finished);
257+
if (this->m_clipNode) this->m_clipNode->setVisible(finished);
258+
if (this->m_smallLabel) this->m_smallLabel->setPositionY(finished ? 18.5f : 15.f);
259+
260+
if (!finished) return;
251261

252262
FMODAudioEngine* fmod = FMODAudioEngine::get();
253263
const std::string& currSong = songManager.getCurrentSong();

0 commit comments

Comments
 (0)