initialize screens only if necessary
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user