Browse Source
Merge branch 'master' into fixes/1271-orphaned-textblock
pull/1284/head
Steven Kirk
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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(); |
|
|
|
} |
|
|
|
|