diff options
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; |