mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
-display the music information only once if just one song exist
This commit is contained in:
parent
f96d478fcb
commit
dbfbf30e61
@ -2024,6 +2024,7 @@ void CMenu::_mainLoopCommon(bool withCF, bool adjusting)
|
||||
{
|
||||
MusicPlayer.DisplayTime = 0;
|
||||
m_btnMgr.hide(m_mainLblCurMusic);
|
||||
if(MusicPlayer.OneSong) m_music_info = false;
|
||||
}
|
||||
|
||||
//Take Screenshot
|
||||
|
@ -61,6 +61,7 @@ void Musicplayer::Init(Config &cfg, const string& musicDir, const string& themeM
|
||||
srand(unsigned(time(NULL)));
|
||||
random_shuffle(FileNames.begin(), FileNames.end());
|
||||
}
|
||||
OneSong = (FileNames.size() == 1);
|
||||
CurrentFileName = FileNames.begin();
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
wstringEx GetFileName();
|
||||
bool SongChanged();
|
||||
time_t DisplayTime;
|
||||
bool OneSong;
|
||||
protected:
|
||||
bool PosFromPrevFile();
|
||||
void LoadCurrentFile();
|
||||
|
Loading…
Reference in New Issue
Block a user