From 17d88ca8fee46890ab6e6fdf409970f073cce2d6 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 14 Dec 2024 15:37:33 +0000 Subject: [PATCH] Optionally remove colour codes from non-timing headers --- app/playlistmodel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/playlistmodel.py b/app/playlistmodel.py index d0c01fb..8eef6a2 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -376,7 +376,9 @@ class PlaylistModel(QAbstractTableModel): if not header_text: return QVariant(Config.TEXT_NO_TRACK_NO_NOTE) else: - return QVariant(self.header_text(rat)) + formatted_header = self.header_text(rat) + trimmed_header = self.remove_section_timer_markers(formatted_header) + return QVariant(trimmed_header) else: return QVariant("")