From 8021d8ff94ea6cb3cbdecf35d3a1ba5f285ba5c4 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 23:07:40 -0500 Subject: [PATCH] modified: packages/update.py --- packages/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/update.py b/packages/update.py index a02fd6b..36adfa9 100644 --- a/packages/update.py +++ b/packages/update.py @@ -30,11 +30,12 @@ def upd(command): thread = threading.Thread(target=download_and_save, args=(url,)) threads.append(thread) thread.start() - + text = "" # Display loading animation while any(thread.is_alive() for thread in threads): for _ in range(len(threads)): - print(".", end="", flush=True) + text += "." + print(text+"\r", end="", flush=True) time.sleep(0.5) print("\nAll files downloaded and saved!")