summaryrefslogtreecommitdiff
path: root/src/lyrics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lyrics.cpp')
-rw-r--r--src/lyrics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lyrics.cpp b/src/lyrics.cpp
index 54cd67b6..fcf128ca 100644
--- a/src/lyrics.cpp
+++ b/src/lyrics.cpp
@@ -71,6 +71,7 @@ void Lyrics::Init()
{
w = new Scrollpad(0, MainStartY, COLS, MainHeight, "", Config.main_color, brNone);
w->SetTimeout(ncmpcpp_window_timeout);
+ isInitialized = 1;
}
void Lyrics::Resize()
@@ -104,6 +105,9 @@ void Lyrics::SwitchTo()
}
else
{
+ if (!isInitialized)
+ Init();
+
# if defined(HAVE_CURL_CURL_H) && defined(HAVE_PTHREAD_H)
if (Downloader && !Ready)
{