There was an error while loading. Please reload this page.
1 parent 97ebb41 commit 91c6323Copy full SHA for 91c6323
1 file changed
QuickLook/Controls/BusyDecorator/SpinIcon.cs
@@ -33,9 +33,7 @@ internal class SpinIcon : TextBlock, ISpinable
33
34
private static void OnSpinPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
35
{
36
- var b = d as SpinIcon;
37
-
38
- if (b == null) return;
+ if (d is not SpinIcon b) return;
39
40
if ((bool)e.NewValue)
41
b.BeginSpin();
0 commit comments