Updated for bar message

This commit is contained in:
Dimitris Zlatanidis 2023-05-17 08:31:47 +03:00
parent ccc899294f
commit 8f6a3b70dc

View file

@ -27,10 +27,10 @@ class ProgressBar(Configs):
self.set_spinner()
self.set_color()
bar_message: str = (f"{'':>2}{self.red}{self.ascii.bullet}{self.endc} {filename}: "
f"{message}... ")
if not filename:
bar_message: str = f"{self.endc}{message} "
bar_message: str = f"{self.endc}{message} "
if filename:
bar_message: str = (f"{'':>2}{self.red}{self.ascii.bullet}{self.endc} {filename}: "
f"{message}... ")
if self.spinning_bar:
bar_spinner = self.spinner(f'{bar_message} {self.color}')