更新 InkCanvasService.cs

This commit is contained in:
PrefacedCorg
2026-04-10 13:05:15 +08:00
parent de613c8a4b
commit 31bf2b5af1
+3 -3
View File
@@ -22,11 +22,11 @@ namespace Ink_Canvas.Plugins
{ {
try try
{ {
_mainWindow.UnFoldFloatingBar_MouseUp(null, null); _mainWindow.SwitchToBoardMode();
} }
catch (Exception ex) catch (Exception ex)
{ {
System.Diagnostics.Debug.WriteLine($"Error opening whiteboard: {ex.Message}"); System.Diagnostics.Debug.WriteLine(string.Format("Error opening whiteboard: {0}", ex.Message));
} }
}); });
} }
@@ -44,7 +44,7 @@ namespace Ink_Canvas.Plugins
} }
catch (Exception ex) catch (Exception ex)
{ {
System.Diagnostics.Debug.WriteLine($"Error closing whiteboard: {ex.Message}"); System.Diagnostics.Debug.WriteLine(string.Format("Error closing whiteboard: {0}", ex.Message));
} }
}); });
} }