refactoring downgrade | fix history

This commit is contained in:
Vinicius Moreira
2019-08-14 15:43:00 -03:00
parent efd0295b36
commit fecda6cacf
6 changed files with 16 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ class HistoryDialog(QDialog):
table_history.setColumnCount(len(app['history'][0]))
table_history.setRowCount(len(app['history']))
table_history.setHorizontalHeaderLabels([locale_keys['flatpak.info.' + key].capitalize() for key in sorted(app['history'][0].keys())])
table_history.setHorizontalHeaderLabels([locale_keys.get(app['model'].get_type() + '.info.' + key, key).capitalize() for key in sorted(app['history'][0].keys())])
for row, commit in enumerate(app['history']):