Browse Source

Merge branch 'master' into fixes/1271-orphaned-textblock

pull/1284/head
Steven Kirk 9 years ago
committed by GitHub
parent
commit
0be2e5f653
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/ProgressBar.cs

2
src/Avalonia.Controls/ProgressBar.cs

@ -112,8 +112,10 @@ namespace Avalonia.Controls
private void UpdateIsIndeterminate(bool isIndeterminate)
{
if (isIndeterminate)
{
if (_indeterminateAnimation == null || _indeterminateAnimation.Disposed)
_indeterminateAnimation = IndeterminateAnimation.StartAnimation(this);
}
else
_indeterminateAnimation?.Dispose();
}

Loading…
Cancel
Save