Fixed installer code tabs

This commit is contained in:
Thorsten Sommer 2025-05-30 11:53:24 +02:00
parent 3f07436e8f
commit 4a14e1b70e
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@
<MudListItem T="string" Class="mb-2"> <MudListItem T="string" Class="mb-2">
Accept the terms of the GPL license and download the latest installer with the download button below. 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. Eventually you need to allow the download of the installer in the download window.
<CodeTabs SelectedIndex="SelectInstallerIndex()"> <CodeTabs @bind-SelectedIndex="this.selectedInstallerIndex">
<CodeBlock Title="Windows">pandoc-@(PANDOC_VERSION)-windows-x86_64.msi</CodeBlock> <CodeBlock Title="Windows">pandoc-@(PANDOC_VERSION)-windows-x86_64.msi</CodeBlock>
<CodeBlock Title="macOS ARM">pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg</CodeBlock> <CodeBlock Title="macOS ARM">pandoc-@(PANDOC_VERSION)-arm64-macOS.pkg</CodeBlock>
<CodeBlock Title="macOS x86">pandoc-@(PANDOC_VERSION)-x86_64-macOS.pkg</CodeBlock> <CodeBlock Title="macOS x86">pandoc-@(PANDOC_VERSION)-x86_64-macOS.pkg</CodeBlock>

View File

@ -38,6 +38,7 @@ public partial class PandocDialog : ComponentBase
private bool showInstallPage; private bool showInstallPage;
private string? licenseText; private string? licenseText;
private bool isLoading; private bool isLoading;
private int selectedInstallerIndex = SelectInstallerIndex();
private int selectedArchiveIndex = SelectArchiveIndex(); private int selectedArchiveIndex = SelectArchiveIndex();
private string downloadUrlArchive = string.Empty; private string downloadUrlArchive = string.Empty;
private string downloadUrlInstaller = string.Empty; private string downloadUrlInstaller = string.Empty;