From 691e0322e7356db44086e180b7f604ddafc54e53 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 8 Sep 2012 04:05:47 +0200 Subject: [PATCH] song info: redraw header after processing file --- src/song_info.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/song_info.cpp b/src/song_info.cpp index f5dc0ac5..6e349080 100644 --- a/src/song_info.cpp +++ b/src/song_info.cpp @@ -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)