summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 549fcb3)
raw | patch | inline | side by side (parent: 549fcb3)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 17 Dec 2011 14:54:47 +0000 (15:54 +0100) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 17 Dec 2011 16:46:47 +0000 (17:46 +0100) |
src/screen_lyrics.c | patch | blob | history |
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 6de59d5ef073869bb109728e91d36cdd524f6987..a8c721068542563a57713d8c1503733b0e07fac5 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
}
}
+static void
+screen_lyrics_reload(void)
+{
+ if (current.loader == NULL && current.artist != NULL &&
+ current.title != NULL) {
+ current.loader = lyrics_load(current.artist, current.title,
+ screen_lyrics_callback, NULL);
+ screen_text_repaint(&text);
+ }
+}
+
static void
lyrics_screen_init(WINDOW *w, int cols, int rows)
{
}
return true;
case CMD_SELECT:
- if (current.loader == NULL && current.artist != NULL &&
- current.title != NULL) {
- current.loader = lyrics_load(current.artist, current.title,
- screen_lyrics_callback, NULL);
- screen_text_repaint(&text);
- }
+ screen_lyrics_reload();
return true;
#ifdef ENABLE_SONG_SCREEN