From a4bba7deaf9b13dba632cd557c5f2fe1d0d09884 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f378f92bba0391af0a2c1ec4556f642e0df63034 Author: vanhofen Date: 2023-06-28 (Wed, 28 Jun 2023) Origin message was: ------------------ - channellist: fix display of hotkeys in history mode ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 4a4089d77..80eeea6fe 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2145,7 +2145,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) {