mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-06 04:51:36 +00:00
Improved reading and writing large Office files without copying them into memory (#1243)
This commit is contained in:
1 parent
918572c158
commit
dbe609a9a7
37 files changed
+1161
-471
No files matched your search
@@ -209,7 +209,7 @@ public partial class SlideAssistant
|
||||
|
||||
try
|
||||
{
|
||||
this.template = PresentationTemplate.ReadFile(this.templatePath);
|
||||
this.template = PresentationTemplate.ReadFile(this.templatePath, this.Logger);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -573,7 +573,7 @@ public partial class SlideAssistant
|
||||
var result = await PresentationFile.CreateAsync(this.slideDeckTemplatePath, targetPath, deck, this.slideDeckBasis, options, pictures, this.Logger, CancellationToken.None);
|
||||
if (!result.IsWritten)
|
||||
{
|
||||
this.Logger.LogWarning("The PowerPoint template '{TemplatePath}' changed since the slides were planned, and they no longer fit it.", this.slideDeckTemplatePath);
|
||||
this.Logger.LogWarning("The PowerPoint template '{TemplatePath}' changed since the slides were planned.", this.slideDeckTemplatePath);
|
||||
await this.MessageBus.SendError(new(AppIcons.SLIDES, TA("The template has changed since the slides were planned. Please create the slides again.")));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user