fix method name

This commit is contained in:
onyx-and-iris 2026-01-19 22:18:26 +00:00
parent 448aa01ad2
commit 6542473394

View File

@ -37,7 +37,7 @@ class BusRotator {
return $this.Buses[$this.CurrentIndex] return $this.Buses[$this.CurrentIndex]
} }
[object] MuteNextBus() { [object] UnmuteNextBus() {
$nextBus = $this.GetNextBus() $nextBus = $this.GetNextBus()
$nextBus.mute = $false $nextBus.mute = $false
return $nextBus return $nextBus
@ -62,7 +62,7 @@ try {
$rotator = [BusRotator]::new($vmr, $busesToRotate) $rotator = [BusRotator]::new($vmr, $busesToRotate)
while ((Read-Host "Press Enter to rotate buses or type 'Q' to quit.") -ne 'Q') { while ((Read-Host "Press Enter to rotate buses or type 'Q' to quit.") -ne 'Q') {
$nextBus = $rotator.MuteNextBus() $nextBus = $rotator.UnmuteNextBus()
Write-Host "Bus $nextBus is now unmuted." Write-Host "Bus $nextBus is now unmuted."
} }
} }