File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,9 @@ def __iter__(self):
487
487
self ._active .remove (proc )
488
488
self ._finished .append (proc )
489
489
self ._make_active ()
490
- progress .update (task , description = self ._desc .format (self ), refresh = True )
490
+
491
+ if self ._progress .is_enabled :
492
+ progress .update (task , description = self ._desc .format (self ), refresh = True )
491
493
492
494
# We could also yield proc.shared_point_view directly,
493
495
# and only call proc.write_next() after the yield returns.
Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ class CustomProgress(Progress):
531
531
"""
532
532
533
533
def __init__ (self , * args , ** kwargs ):
534
- self .is_enabled = kwargs .get ("disable" , None ) is not True
534
+ self .is_enabled = not kwargs .get ("disable" , None ) is True
535
535
if self .is_enabled :
536
536
super ().__init__ (* args , ** kwargs )
537
537
You can’t perform that action at this time.
0 commit comments