virtualcam - print output_active status on toggle

patch bump
This commit is contained in:
onyx-and-iris 2025-05-25 22:17:10 +01:00
parent 1c86b1f6ef
commit eb686ae58e
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online> # SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
# #
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
__version__ = "0.12.8" __version__ = "0.12.9"

View File

@ -32,8 +32,11 @@ def stop(ctx: typer.Context):
@app.command('toggle | tg') @app.command('toggle | tg')
def toggle(ctx: typer.Context): def toggle(ctx: typer.Context):
"""Toggle the virtual camera.""" """Toggle the virtual camera."""
ctx.obj.toggle_virtual_cam() resp = ctx.obj.toggle_virtual_cam()
out_console.print('Virtual camera toggled.') if resp.output_active:
out_console.print('Virtual camera is enabled.')
else:
out_console.print('Virtual camera is disabled.')
@app.command('status | ss') @app.command('status | ss')