Fix help sidebar button initialization

This commit is contained in:
2026-01-30 11:36:22 +13:00
parent 8e49a2d624
commit 7b9fef1946

View File

@@ -540,13 +540,6 @@ foreach ($item in $navItems) {
$navY += 26
}
$helpNavBtn = New-Object System.Windows.Forms.Button
$helpNavBtn.Text = "How to use"
$helpNavBtn.Location = [System.Drawing.Point]::new(16, ($navY + 8))
$helpNavBtn.Size = [System.Drawing.Size]::new(130, 28)
$sidebar.Controls.Add($helpNavBtn)
Style-ButtonSecondary $helpNavBtn
function Style-ButtonPrimary {
param([System.Windows.Forms.Button]$Button)
$Button.BackColor = $colorAccent
@@ -566,6 +559,13 @@ function Style-ButtonSecondary {
$Button.UseVisualStyleBackColor = $false
}
$helpNavBtn = New-Object System.Windows.Forms.Button
$helpNavBtn.Text = "How to use"
$helpNavBtn.Location = [System.Drawing.Point]::new(16, ($navY + 8))
$helpNavBtn.Size = [System.Drawing.Size]::new(130, 28)
$sidebar.Controls.Add($helpNavBtn)
Style-ButtonSecondary $helpNavBtn
function Add-Label {
param([string]$Text, [int]$X, [int]$Y, [int]$W, [int]$H)
$label = New-Object System.Windows.Forms.Label