song info: redraw header after processing file

This commit is contained in:
Andrzej Rybczak
2012-09-08 04:05:47 +02:00
parent 057922d2a6
commit 691e0322e7

View File

@@ -93,12 +93,16 @@ void SongInfo::SwitchTo()
myOldScreen = myScreen;
myScreen = this;
DrawHeader();
w->clear();
w->reset();
PrepareSong(*s);
w->flush();
// redraw header after we're done with the file, since reading it from disk
// takes a bit of time and having header updated before content of a window
// is displayed doesn't look nice.
DrawHeader();
}
void SongInfo::PrepareSong(MPD::Song &s)