song info: redraw header after processing file
This commit is contained in:
@@ -93,12 +93,16 @@ void SongInfo::SwitchTo()
|
|||||||
|
|
||||||
myOldScreen = myScreen;
|
myOldScreen = myScreen;
|
||||||
myScreen = this;
|
myScreen = this;
|
||||||
DrawHeader();
|
|
||||||
|
|
||||||
w->clear();
|
w->clear();
|
||||||
w->reset();
|
w->reset();
|
||||||
PrepareSong(*s);
|
PrepareSong(*s);
|
||||||
w->flush();
|
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)
|
void SongInfo::PrepareSong(MPD::Song &s)
|
||||||
|
|||||||
Reference in New Issue
Block a user