Skip to content

Add setting to hide Anti-AFK stream indicator#319

Merged
zortos293 merged 2 commits intodevfrom
capy/hide-anti-afk-indicator
Apr 16, 2026
Merged

Add setting to hide Anti-AFK stream indicator#319
zortos293 merged 2 commits intodevfrom
capy/hide-anti-afk-indicator

Conversation

@zortos293
Copy link
Copy Markdown
Collaborator

@zortos293 zortos293 commented Apr 16, 2026

This PR adds a persisted user setting to hide the on-stream Anti-AFK indicator badge without changing Anti-AFK behavior or shortcut functionality. The setting defaults to true to preserve existing behavior.

Shared & Main:

  • Add showAntiAfkIndicator: boolean to the Settings interface in src/shared/gfn.ts
  • Add the field to src/main/settings.ts with default true and proper JSDoc comment

Renderer:

  • Add showAntiAfkIndicator to initial settings state in src/renderer/src/App.tsx
  • Pass the setting through to StreamView as a prop

Settings UI:

  • Add toggle in Settings → Interface/Appearance section in src/renderer/src/components/SettingsPage.tsx
  • Positioned alongside existing stream UI toggles (Hide Stream Overlay Buttons, Show Stats on Stream Launch)

Stream View:

  • Update AntiAfkIndicator component to check both antiAfkEnabled and showAntiAfkIndicator before rendering
  • Update MicrophoneIndicator and RecordingIndicator to use showAntiAfkIndicator for badge stacking logic
  • Anti-AFK pulse behavior and shortcut toggling remain unchanged

Validation:

  • Typecheck and build pass with no errors (npm run typecheck && npm run build)

Open OPE-062 OPE-062

@zortos293 zortos293 added the capy Generated by capy.ai label Apr 16, 2026 — with Capy AI
@zortos293 zortos293 merged commit 2e6df87 into dev Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capy Generated by capy.ai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant