1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 05:36:19 +00:00

Enable sorting of archive table columns (#349) (#361)

This enables column sorting for the table on the archive list page.
However, all columns are sorted by lexical string order. For example,
this means that archives with "52 MB" are ranked greater than "332 MB".

Completes: https://github.com/borgbase/vorta/issues/349
This commit is contained in:
Aidan Pieper 2019-10-01 21:05:40 -07:00 committed by Manuel Riel
parent 6c69f3689e
commit 47739b9663

View file

@ -59,6 +59,7 @@ def __init__(self, parent=None):
self.archiveTable.setAlternatingRowColors(True)
self.archiveTable.cellDoubleClicked.connect(self.cell_double_clicked)
self.archiveTable.itemSelectionChanged.connect(self.update_mount_button_text)
self.archiveTable.setSortingEnabled(True)
self.mountButton.clicked.connect(self.mount_action)
self.listButton.clicked.connect(self.list_action)