mirror of
https://github.com/borgbase/vorta
synced 2025-01-02 21:25:48 +00:00
Fix sorting of diff results.
* src/vorta/views/diff_result.py (DiffSortProxyModel.choose_data): Return correct data for column `2`.
This commit is contained in:
parent
c5034e171b
commit
b95da02b97
1 changed files with 4 additions and 4 deletions
|
@ -464,9 +464,9 @@ def choose_data(self, index: QModelIndex):
|
|||
if ct == ChangeType.NONE:
|
||||
return ChangeType.MODIFIED
|
||||
return ct
|
||||
elif column == 2:
|
||||
return item.data.changed_size
|
||||
else:
|
||||
if column == 2 and item.data.modified:
|
||||
return sum(item.data.modified)
|
||||
# size
|
||||
return item.data.size
|
||||
|
||||
|
@ -584,8 +584,8 @@ class DiffData:
|
|||
|
||||
file_type: FileType
|
||||
change_type: ChangeType
|
||||
changed_size: int
|
||||
size: int
|
||||
changed_size: int # total modified bits
|
||||
size: int # size change (disk usage)
|
||||
mode_change: Optional[Tuple[str, str]] = None
|
||||
owner_change: Optional[Tuple[str, str, str, str]] = None
|
||||
modified: Optional[Tuple[int, int]] = None
|
||||
|
|
Loading…
Reference in a new issue