Get header labels from DEFAULT_COLUMNS

This commit is contained in:
Laurent Monin
2024-05-13 00:18:52 +02:00
parent 74e15d4162
commit a9e7f4542d

View File

@@ -700,7 +700,7 @@ class BaseTreeView(QtWidgets.QTreeWidget):
config.persist[self.header_locked] = header.is_locked
def restore_default_columns(self):
labels = [_(h) if n != '~fingerprint' else '' for h, n in MainPanel.columns]
labels = [_(c.title) if not c.is_icon else '' for c in DEFAULT_COLUMNS]
self.setHeaderLabels(labels)
header = self.header()