From b799d033a9a1f7b89a922fbc051b5e893b1eedf9 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 30 May 2025 11:16:53 +0200 Subject: [PATCH] Change all code tabs at the same time --- app/MindWork AI Studio/Dialogs/PandocDialog.razor | 8 ++++---- app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/PandocDialog.razor b/app/MindWork AI Studio/Dialogs/PandocDialog.razor index e228acda..4af9ce1b 100644 --- a/app/MindWork AI Studio/Dialogs/PandocDialog.razor +++ b/app/MindWork AI Studio/Dialogs/PandocDialog.razor @@ -54,7 +54,7 @@ Accept the terms of the GPL license and download the latest installer with the download button below. Eventually you need to allow the download of the installer in the download window. - + pandoc-@(PANDOC_VERSION)-windows-x86_64.msi pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg pandoc-@(PANDOC_VERSION)-x86_64-macOS.pkg @@ -83,7 +83,7 @@ Extract the archive to a folder of your choice. - + C:\Users\%USERNAME%\pandoc /usr/local/bin/pandoc /usr/local/bin/pandoc @@ -93,7 +93,7 @@ Open the folder and copy the full path to the @PandocProcessBuilder.PandocExecutableName file into your clipboard. - + C:\Users\%USERNAME%\pandoc\pandoc-@(PANDOC_VERSION) /usr/local/bin/pandoc/pandoc-@(PANDOC_VERSION) /usr/local/bin/pandoc/pandoc-@(PANDOC_VERSION) @@ -104,7 +104,7 @@ Add the copied path to your systems environment variables and check the installation by typing
pandoc --version into your command line interface. - + > pandoc.exe --version
> pandoc @(PANDOC_VERSION)
> pandoc --version
> pandoc @(PANDOC_VERSION)
> pandoc --version
> pandoc @(PANDOC_VERSION)
diff --git a/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs b/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs index 4d63ebb0..6e9b71ff 100644 --- a/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs @@ -38,6 +38,7 @@ public partial class PandocDialog : ComponentBase private bool showInstallPage; private string? licenseText; private bool isLoading; + private int selectedArchiveIndex = SelectArchiveIndex(); #region Overrides of ComponentBase @@ -147,7 +148,7 @@ public partial class PandocDialog : ComponentBase } // ReSharper disable RedundantSwitchExpressionArms - private int SelectInstallerIndex() => CPU_ARCHITECTURE switch + private static int SelectInstallerIndex() => CPU_ARCHITECTURE switch { RID.OSX_ARM64 => 1, RID.OSX_X64 => 2, @@ -158,7 +159,7 @@ public partial class PandocDialog : ComponentBase _ => 0, }; - private int SelectArchiveIndex() => CPU_ARCHITECTURE switch + private static int SelectArchiveIndex() => CPU_ARCHITECTURE switch { RID.OSX_ARM64 => 1, RID.OSX_X64 => 1,