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

View File

@@ -56,7 +56,7 @@ class DownloadFrame(wx.Frame):
self.download_obj.download()
while self.download_obj.is_active():
if self.download_obj.total_file_size == -1:
if self.download_obj.get_percent() == -1:
amount_str = f"{utilities.human_fmt(self.download_obj.downloaded_file_size)} downloaded"
else:
amount_str = f"{utilities.human_fmt(self.download_obj.downloaded_file_size)} downloaded of {utilities.human_fmt(self.download_obj.total_file_size)} ({self.download_obj.get_percent():.2f}%)"
@@ -71,7 +71,6 @@ class DownloadFrame(wx.Frame):
f"Estimated time remaining: {utilities.seconds_to_readable_time(self.download_obj.get_time_remaining())}"
)
progress_bar.SetValue(int(self.download_obj.get_percent()))
wx.GetApp().Yield()