Fixed import into threads.py. Corrected typos

This commit is contained in:
Marco
2019-07-03 10:02:07 +02:00
parent 69a50b0664
commit 27b5341173
2 changed files with 4 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ class DownloadWindow(QWidget, Ui_Download_window):
"""Start the download thread."""
self._download_thread.start()
def _downlaod_format_str(self, n):
def _download_format_str(self, n):
"""Return a well-formatted string with the downloaded MB."""
return f"Downloaded: {n} MB"
@@ -74,7 +74,7 @@ class DownloadWindow(QWidget, Ui_Download_window):
def _display_progress(self, progress):
"""Display the downloaded MB."""
if progress != Constants.EXTRACTING_CODE:
self.status_lbl.setText(self._downlaod_format_str(progress))
self.status_lbl.setText(self._download_format_str(progress))
elif progress == Constants.EXTRACTING_CODE:
self.status_lbl.setText(Constants.EXTRACTING_MSG)