preserve tfam group key when it exists

This commit is contained in:
shouya 2025-05-23 11:06:49 +09:00
parent a3e19581f6
commit 8fa9b5778e
No known key found for this signature in database

View File

@ -340,7 +340,7 @@ class Highlights(QTreeWidget):
if tfam: if tfam:
tsec = tfam[0] tsec = tfam[0]
lsec = tfam[-1] lsec = tfam[-1]
key = (spine_index, tsec or '', lsec or '') key = (spine_index,) + tfam
else: else:
tsec = h.get('top_level_section_title') tsec = h.get('top_level_section_title')
lsec = h.get('lowest_level_section_title') lsec = h.get('lowest_level_section_title')