Allow logging even if autostop is enabled

This commit is contained in:
Miguel Jacq 2025-02-08 16:09:56 +11:00
parent 4128cad08f
commit c54d9f82c7
No known key found for this signature in database
GPG Key ID: 59B3F0C24135C6A9

View File

@ -124,7 +124,7 @@ def main(cwd=None):
action="store_true",
dest="log_filenames",
default=False,
help="Share files: Log individual names of shared files as they are downloaded (requires autostop sharing to be disabled)"
help="Log file download activity to stdout"
)
parser.add_argument(
"--qr",
@ -308,10 +308,6 @@ def main(cwd=None):
if persistent_filename:
mode_settings.set(mode, "filenames", filenames)
if autostop_sharing and log_filenames:
print("Autostop sharing is enabled, thus individual files cannot be downloaded (or logged). Set both --no-autostop-sharing and --log-filenames for intended functionality.")
sys.exit()
# In receive mode, you must allows either text, files, or both
if mode == "receive" and disable_text and disable_files:
print("You cannot disable both text and files")