From 3d0a15da37606c536a54325912739b62ffca8f50 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Sat, 7 Dec 2024 16:16:57 +0330 Subject: [PATCH] Update SpriteVisualPool.cs --- .../Win2D/Controls/TextBlockStrokeView/SpriteVisualPool.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dev/DevWinUI.Controls/Win2D/Controls/TextBlockStrokeView/SpriteVisualPool.cs b/dev/DevWinUI.Controls/Win2D/Controls/TextBlockStrokeView/SpriteVisualPool.cs index 69ffc90..b4d2710 100644 --- a/dev/DevWinUI.Controls/Win2D/Controls/TextBlockStrokeView/SpriteVisualPool.cs +++ b/dev/DevWinUI.Controls/Win2D/Controls/TextBlockStrokeView/SpriteVisualPool.cs @@ -39,11 +39,8 @@ internal SpriteVisualPool(int maximumRetained = 200) this.compositor = CompositionTarget.GetCompositorForCurrentThread(); items = new Queue(); -#if NET6_0 - clearTimer = new System.Timers.Timer(60000); -#else + clearTimer = new System.Timers.Timer(TimeSpan.FromMinutes(1)); -#endif clearTimer.AutoReset = false; clearTimer.Elapsed += ClearTimer_Elapsed; this.maximumRetained = maximumRetained;