GUI: Implement update.plist creation on update

This commit is contained in:
Mykola Grymalyuk
2023-05-14 20:46:52 -06:00
parent d8267838ae
commit 5929e81337
7 changed files with 82 additions and 32 deletions
-2
View File
@@ -382,7 +382,6 @@ class DownloadObject:
"""
if self.total_file_size == 0.0:
logging.error("- File size is 0, cannot calculate percent")
return -1
return self.downloaded_file_size / self.total_file_size * 100
@@ -407,7 +406,6 @@ class DownloadObject:
"""
if self.total_file_size == 0.0:
logging.error("- File size is 0, cannot calculate time remaining")
return -1
speed = self.get_speed()
if speed <= 0: