Code

screen: don't show disabled help screen in screen list
authorMax Kellermann <max@duempel.org>
Sun, 30 Nov 2008 19:41:01 +0000 (20:41 +0100)
committerMax Kellermann <max@duempel.org>
Sun, 30 Nov 2008 19:41:01 +0000 (20:41 +0100)
When the help screen was disabled at compile time, it was showed in
the screen list anyway.

src/screen.c

index 569df7a51022a615edeb209eecfb2e4b21fb7dde..32fc668c0f261fe854e6d94e434a9c37c6e11905 100644 (file)
@@ -145,7 +145,9 @@ paint_top_window2(const char *header, mpdclient_t *c)
                mvwaddstr(w, 0, 0, header);
 #ifndef NCMPC_MINI
        } else {
+#ifdef ENABLE_HELP_SCREEN
                print_hotkey(w, CMD_SCREEN_HELP, _("Help"));
+#endif
                print_hotkey(w, CMD_SCREEN_PLAY, _("Playlist"));
                print_hotkey(w, CMD_SCREEN_FILE, _("Browse"));
 #ifdef ENABLE_ARTIST_SCREEN