From 3e646edfebcde14f4005d9d2ff7cd178ec3dcef1 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 14 Nov 2025 13:10:20 +0100 Subject: [PATCH] Add parameter to control success message display in CheckAvailabilityAsync --- app/MindWork AI Studio/Tools/Pandoc.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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());