From 62420f9ce13d86581483fc2387449fd090057309 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 28 Jun 2023 23:46:44 +0200 Subject: [PATCH] channellist: fix display of hotkeys in history mode --- src/gui/channellist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index b154aa8b2..58cb5c287 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2144,7 +2144,8 @@ void CChannelList::paintItem(int pos, const bool firstpaint) else if (g_settings.channellist_show_numbers) { int numpos = x + OFFSET_INNER_MID + numwidth - g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth(tmp); - g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->RenderString(numpos, ypos + fheight, numwidth + 5, tmp, color, fheight); + if (!this->historyMode || (this->historyMode && pos <= 9)) // history mode only uses digits 0..9 as hotkeys + g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->RenderString(numpos, ypos + fheight, numwidth + 5, tmp, color, fheight); } else if (!edit_state) {