[BugFix] 切换页面时保存墨迹

This commit is contained in:
Raspberry-Monster 2023-05-23 22:09:50 +08:00
parent 4fde34ac20
commit 8d9ca9ae2a
No known key found for this signature in database
GPG Key ID: 9A0D725BB122D507

View File

@ -5575,7 +5575,10 @@ namespace Ink_Canvas
private void BtnWhiteBoardSwitchNext_Click(object sender, EventArgs e)
{
if (Settings.Automation.IsAutoSaveStrokesAtClear && inkCanvas.Strokes.Count > Settings.Automation.MinimumAutomationStrokeNumber)
{
SaveScreenShot(true);
if (Settings.Automation.IsAutoSaveStrokesAtScreenshot) SaveInkCanvasStrokes(false);
}
if (CurrentWhiteboardIndex >= WhiteboardTotalCount)
{
BtnWhiteBoardAdd_Click(sender, e);
@ -5596,7 +5599,10 @@ namespace Ink_Canvas
{
if (WhiteboardTotalCount >= 99) return;
if (Settings.Automation.IsAutoSaveStrokesAtClear && inkCanvas.Strokes.Count > Settings.Automation.MinimumAutomationStrokeNumber)
{
SaveScreenShot(true);
if (Settings.Automation.IsAutoSaveStrokesAtScreenshot) SaveInkCanvasStrokes(false);
}
SaveStrokes();
ClearStrokes(true);