Update ts_qt.py to update badges if meta tag field is removed

This commit is contained in:
Theasacraft 2024-04-26 15:41:37 +02:00 committed by GitHub
parent 898ce5fdc7
commit 243d786298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2546,7 +2546,7 @@ class PreviewPanel(QWidget):
entry = self.lib.get_entry(item_pair[1])
try:
index = entry.fields.index(field)
updated_badges = False
updated_badges = False
if 8 in entry.fields[index].keys() and (1 in entry.fields[index][8] or 0 in entry.fields[index][8]):
updated_badges = True
# TODO: Create a proper Library/Entry method to manage fields.