Browse Source
Fixed if clause in ProgressBar.UpdateIsIndeterminate
Found by PVS studio
pull/1293/head
Nikita Tsukanov
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(); |
|
|
|
} |
|
|
|
|