diff --git a/app/MindWork AI Studio/Tools/Pandoc.cs b/app/MindWork AI Studio/Tools/Pandoc.cs index 94384df7..c4bdb462 100644 --- a/app/MindWork AI Studio/Tools/Pandoc.cs +++ b/app/MindWork AI Studio/Tools/Pandoc.cs @@ -37,8 +37,9 @@ public static partial class Pandoc /// /// Global rust service to access file system and data dir. /// Controls if snackbars are shown to the user. + /// Controls if a success snackbar is shown to the user. /// True, if pandoc is available and the minimum required version is met, else false. - public static async Task CheckAvailabilityAsync(RustService rustService, bool showMessages = true) + public static async Task CheckAvailabilityAsync(RustService rustService, bool showMessages = true, bool showSuccessMessage = true) { try { @@ -80,7 +81,7 @@ public static partial class Pandoc if (installedVersion >= MINIMUM_REQUIRED_VERSION) { - if (showMessages) + if (showMessages && showSuccessMessage) await MessageBus.INSTANCE.SendSuccess(new(Icons.Material.Filled.CheckCircle, string.Format(TB("Pandoc v{0} is installed."), installedVersionString))); LOG.LogInformation("Pandoc v{0} is installed and matches the required version (v{1})", installedVersionString, MINIMUM_REQUIRED_VERSION.ToString());