Skip to content

Commit

Permalink
Improve 'Invoke-WPFTab' Parameter by specifying its type (as expected…
Browse files Browse the repository at this point in the history
… by the function) and make it Mandatory
  • Loading branch information
og-mrk committed Oct 25, 2024
1 parent fdd32f4 commit f98d3be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions/public/Invoke-WPFTab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ function Invoke-WPFTab {
#>

Param ($ClickedTab)
Param (
[Parameter(Mandatory,position=0)]
[string]$ClickedTab
)

$tabNav = Get-WinUtilVariables | Where-Object {$psitem -like "WPFTabNav"}
$tabNumber = [int]($ClickedTab -replace "WPFTab","" -replace "BT","") - 1
Expand Down

0 comments on commit f98d3be

Please sign in to comment.