Log the path for the main 'Download Files' button too, for consistency

This commit is contained in:
Miguel Jacq 2025-02-08 16:19:35 +11:00
parent 249d7e5149
commit b7a2473c26
No known key found for this signature in database
GPG Key ID: 59B3F0C24135C6A9
2 changed files with 8 additions and 2 deletions

View File

@ -246,7 +246,7 @@ class SendBaseModeWeb:
or self.common.platform == "BSD"
):
if self.web.settings.get("share", "log_filenames"):
filename_str = "{0} - ".format(os.path.basename(file_to_download))
filename_str = "f{path} - "
else:
filename_str = ""

View File

@ -346,8 +346,14 @@ class ShareModeWeb(SendBaseModeWeb):
or self.common.platform == "Linux"
or self.common.platform == "BSD"
):
if self.web.settings.get("share", "log_filenames"):
filename_str = f"{path} - "
else:
filename_str = ""
sys.stdout.write(
"\r{0:s}, {1:.2f}% ".format(
"\r{0}{1:s}, {2:.2f}% ".format(
filename_str,
self.common.human_readable_filesize(downloaded_bytes),
percent,
)