mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 10:27:21 +00:00
Added progress messages and quick access to exported files (#1112)
This commit is contained in:
1 parent
7f72da628e
commit
e0d8e18f34
33 files changed
+1130
-23
No files matched your search
@@ -562,6 +562,10 @@ public partial class SlideAssistant
|
||||
var targetPath = response.SaveFilePath;
|
||||
this.isWritingPresentation = true;
|
||||
this.StateHasChanged();
|
||||
|
||||
// Pictures make this take seconds, since each of them is prepared anew:
|
||||
await using var feedback = new FileExportFeedback();
|
||||
feedback.ShowRunning(targetPath);
|
||||
try
|
||||
{
|
||||
var options = new PresentationWriteOptions(this.variantLabel, this.footerText.Trim(), this.keepEmptyPicturePlaceholders);
|
||||
@@ -582,7 +586,7 @@ public partial class SlideAssistant
|
||||
await this.MessageBus.SendWarning(new(Icons.Material.Filled.HideImage, string.Format(T("These pictures could not be placed, because PowerPoint cannot show their format or they cannot be read: {0}"), string.Join(", ", names))));
|
||||
}
|
||||
|
||||
await this.MessageBus.SendSuccess(new(Icons.Material.Filled.Slideshow, T("The PowerPoint file was created.")));
|
||||
await feedback.SucceededAsync(Icons.Material.Filled.Slideshow, T("The PowerPoint file was created."), targetPath, true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user