diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-06-26 18:48:00 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-06-26 18:48:00 +0200 |
commit | 450bf1b636a2ecd1adc4fe9a1337d1af9c32fe7f (patch) | |
tree | 0405232a5aff9e6ce9970ff1ce9f183e6f14d3a9 /src/browser.h | |
parent | 1147795fc6fadc310ccee33dbc6eb59889bc9d6d (diff) |
initialize screens only if necessary
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/browser.h b/src/browser.h index 1f938770..06f8b853 100644 --- a/src/browser.h +++ b/src/browser.h @@ -29,7 +29,6 @@ class Browser : public Screen< Menu<MPD::Item> > public: Browser() : itsScrollBeginning(0), itsBrowsedDir("/") { } - virtual void Init(); virtual void Resize(); virtual void SwitchTo(); @@ -57,7 +56,10 @@ class Browser : public Screen< Menu<MPD::Item> > void ClearDirectory(const std::string &) const; void ChangeBrowseMode(); void UpdateItemList(); - + + protected: + virtual void Init(); + private: static bool hasSupportedExtension(const std::string &); static std::string ItemToString(const MPD::Item &, void *); |