Added progress messages and quick access to exported files (#1112)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-25 22:10:38 +01:00
1 parent 7f72da628e
commit e0d8e18f34
33 files changed
+1130 -23

No files matched your search

+7 -1
View File
@@ -157,13 +157,19 @@ public static class PandocExport
if (!pandocState.IsAvailable)
return false;
//
// The export runs from here on. Before, the user may still be looking at the dialog which
// offers to install Pandoc, and a notification that we save would be wrong there:
//
await using var feedback = new FileExportFeedback();
feedback.ShowRunning(response.SaveFilePath);
if (!await ConvertAsync(rustService, markdownText, response.SaveFilePath, format))
{
await MessageBus.INSTANCE.SendError(new(Icons.Material.Filled.Cancel, TB("The export failed.")));
return false;
}
await MessageBus.INSTANCE.SendSuccess(new(Icons.Material.Filled.CheckCircle, TB("The export succeeded.")));
await feedback.SucceededAsync(Icons.Material.Filled.CheckCircle, TB("The export succeeded."), response.SaveFilePath, true);
return true;
}
}