From: Max Kellermann Date: Sun, 30 Nov 2008 19:41:01 +0000 (+0100) Subject: screen: don't show disabled help screen in screen list X-Git-Tag: release-0.12~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=649e770b6e9a93c09f85318e7c8a87b12fd245ba;p=ncmpc.git screen: don't show disabled help screen in screen list When the help screen was disabled at compile time, it was showed in the screen list anyway. --- diff --git a/src/screen.c b/src/screen.c index 569df7a..32fc668 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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