skip number if just one

This commit is contained in:
Peter D. Gray 2024-02-02 10:23:16 -05:00
parent d87387e77e
commit 565ae1dec8
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -688,7 +688,7 @@ class Display:
# - lots of data so we can show nice animation
# - hdr:BBQrHeader instance
count = len(got_parts)
if hdr.num_parts < (CHARS_W // 2):
if 2 <= hdr.num_parts < (CHARS_W // 2):
# if not too many parts, show - or 3 as they arrive
pat = []
for i in range(hdr.num_parts):