mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-30 09:28:06 -04:00
Log the path for the main 'Download Files' button too, for consistency
This commit is contained in:
parent
249d7e5149
commit
b7a2473c26
@ -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 = ""
|
||||
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user