From ae2872d93092be00fb6e46b01412326f0e70b6a4 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sep 24 2021 11:10:29 +0000 Subject: Fix disabling progress bar Signed-off-by: Nils Philippsen --- diff --git a/countme/progress.py b/countme/progress.py index 71fd4c0..2ac64f2 100644 --- a/countme/progress.py +++ b/countme/progress.py @@ -162,7 +162,7 @@ class diyprog: def set_description(self, desc=None, refresh=True): self.desc = desc - if refresh: + if refresh and not self.disable: self.display() def update(self, n=1):