Skip to content

Commit

Permalink
Compressed (download) size now also displays in File Size
Browse files Browse the repository at this point in the history
  • Loading branch information
dhtdht020 committed Sep 17, 2021
1 parent 57e0edb commit 3d9a9b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xosc_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def selection_changed(self):

# File Size
try:
self.ui.filesize.setText(metadata.file_size(self.current_app["extracted"]))
extracted = metadata.file_size(self.current_app["extracted"])
compressed = metadata.file_size(self.current_app["zip_size"])
self.ui.filesize.setText(f"{compressed} / {extracted}")
except KeyError:
self.ui.filesize.setText("Unknown")

Expand Down

0 comments on commit 3d9a9b3

Please sign in to comment.