Skip to content

Commit f982e08

Browse files
author
James Brundage
committed
Hide-OBS: Fixing filter (re #67)
1 parent 6897cf1 commit f982e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Hide-OBS.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Hide-OBS {
3232
# Walk over all items in the scene
3333
foreach ($sceneItem in Get-OBSSceneItem -SceneName $SceneName) {
3434
# If the match our wildcard and we confirm, remove it.
35-
if ($sceneItem.SourceName -like $sourceName -and
35+
if ($sceneItem.SourceName -like $ItemName -and
3636
$PSCmdlet.ShouldProcess("Hide input $($sceneItem.SourceName)")) {
3737
# Hide it.
3838
$sceneItem | Set-OBSSceneItemEnabled -SceneItemEnabled:$false

0 commit comments

Comments
 (0)