diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-14 00:54:48 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-14 00:54:48 +0200 |
commit | 1891c1c0503a5ef66e7ef4b57a23d42cd4c2e824 (patch) | |
tree | c1cac6258581ff6e949bcdf581a436c1412cbcd9 /src/server_info.cpp | |
parent | 7c3f93e211c6748b4fdf4486bd0e88fff38e3454 (diff) |
do not initialize screens lazily as it doesn't make much sense
Diffstat (limited to 'src/server_info.cpp')
-rw-r--r-- | src/server_info.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/server_info.cpp b/src/server_info.cpp index a7eab9fc..994a2e70 100644 --- a/src/server_info.cpp +++ b/src/server_info.cpp @@ -32,15 +32,13 @@ using Global::myOldScreen; ServerInfo *myServerInfo = new ServerInfo; -void ServerInfo::init() +ServerInfo::ServerInfo() { SetDimensions(); w = new NC::Scrollpad((COLS-itsWidth)/2, (MainHeight-itsHeight)/2+MainStartY, itsWidth, itsHeight, "MPD server info", Config.main_color, Config.window_border); itsURLHandlers = Mpd.GetURLHandlers(); itsTagTypes = Mpd.GetTagTypes(); - - isInitialized = 1; } void ServerInfo::switchTo() @@ -53,9 +51,6 @@ void ServerInfo::switchTo() return; } - if (!isInitialized) - init(); - // resize() can fall back to old screen, so we need it updated myOldScreen = myScreen; |