优化代码

This commit is contained in:
2025-12-20 17:22:17 +08:00
parent 81621cb9d0
commit 011effa047
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -100,7 +100,6 @@ namespace Ink_Canvas
// 页面切换防抖机制 // 页面切换防抖机制
private DateTime _lastSlideSwitchTime = DateTime.MinValue; private DateTime _lastSlideSwitchTime = DateTime.MinValue;
private int _pendingSlideIndex = -1; private int _pendingSlideIndex = -1;
private System.Timers.Timer _slideSwitchDebounceTimer;
private const int SlideSwitchDebounceMs = 150; private const int SlideSwitchDebounceMs = 150;
private bool _isInkClearedByButton = false; private bool _isInkClearedByButton = false;
#endregion #endregion
+1 -1
View File
@@ -1294,7 +1294,7 @@ namespace Ink_Canvas.Windows
recentTimer6 = "--:--"; recentTimer6 = "--:--";
} }
} }
catch (Exception ex) catch (Exception)
{ {
recentTimer1 = "--:--"; recentTimer1 = "--:--";
recentTimer2 = "--:--"; recentTimer2 = "--:--";