From 6ad530ce2e8203392b8320e5190621478f11cd53 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 25 May 2025 22:18:24 +0100 Subject: [PATCH] virtualcam - print OutputActive status on toggle --- virtualcam.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/virtualcam.go b/virtualcam.go index 4733710..172f0cf 100644 --- a/virtualcam.go +++ b/virtualcam.go @@ -43,10 +43,16 @@ type VirtualCamToggleCmd struct{} // size = 0x0 // Run executes the command to toggle the virtual camera. func (c *VirtualCamToggleCmd) Run(ctx *context) error { - _, err := ctx.Client.Outputs.ToggleVirtualCam() + resp, err := ctx.Client.Outputs.ToggleVirtualCam() if err != nil { return fmt.Errorf("failed to toggle virtual camera: %w", err) } + + if resp.OutputActive { + fmt.Fprintln(ctx.Out, "Virtual camera is now active.") + } else { + fmt.Fprintln(ctx.Out, "Virtual camera is now inactive.") + } return nil }