mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 03:45:30 +00:00
Improve 'Invoke-WPFTab' Parameter by specifying its type (as expected by the function) and make it Mandatory
This commit is contained in:
parent
fdd32f441f
commit
f98d3be85e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user