initialize screens only if necessary

This commit is contained in:
Andrzej Rybczak
2009-06-26 18:48:00 +02:00
parent 1147795fc6
commit 450bf1b636
26 changed files with 99 additions and 41 deletions

View File

@@ -33,7 +33,6 @@ class Playlist : public Screen< Menu<MPD::Song> >
Playlist() : NowPlaying(-1), OldPlaying(-1), itsTotalLength(0), itsRemainingTime(0), itsScrollBegin(0) { }
~Playlist() { }
virtual void Init();
virtual void SwitchTo();
virtual void Resize();
@@ -76,6 +75,9 @@ class Playlist : public Screen< Menu<MPD::Song> >
static bool BlockUpdate;
static bool BlockRefreshing;
protected:
virtual void Init();
private:
std::string TotalLength();