improve:PPT联动

This commit is contained in:
2026-02-07 10:44:17 +08:00
parent 884abf5b0e
commit ce0147091a
+12
View File
@@ -1296,6 +1296,18 @@ namespace Ink_Canvas.Helpers
{
UnbindEvents();
if (_pptActivePresentation != null)
{
try
{
PresentationClose?.Invoke(_pptActivePresentation);
}
catch (Exception ex)
{
LogHelper.WriteLogToFile($"触发PresentationClose事件失败: {ex.Message}", LogHelper.LogType.Warning);
}
}
SafeReleaseComObject(_pptSlideShowWindow, "_pptSlideShowWindow");
SafeReleaseComObject(_pptActivePresentation, "_pptActivePresentation");
SafeReleaseComObject(CurrentSlide, "CurrentSlide");