让警告没那么多

应该不会出问题的吧
This commit is contained in:
PrefacedCorg
2025-08-31 01:47:00 +08:00
parent 16283f4643
commit 2fe482b802
4 changed files with 32 additions and 36 deletions
+2 -2
View File
@@ -1360,7 +1360,7 @@ namespace Ink_Canvas
// 直接设置滚动位置,不使用动画
SettingsPanelScrollViewer.ScrollToVerticalOffset(targetPosition);
}
catch (Exception ex)
catch (Exception)
{
// 如果出现异常,恢复到原来的滚动位置
SettingsPanelScrollViewer.ScrollToVerticalOffset(originalOffset);
@@ -2106,7 +2106,7 @@ namespace Ink_Canvas
}
}
}
catch (Exception ex)
catch (Exception)
{
// 如果直接发送失败,回退到原来的方法
if (isPrevious)