Skip to content

Renderer: fire-and-forget clipboard writes show success unconditionally; nav-bar version fallback stale #46

Description

@I4cTime

Summary

Minor renderer polish issues:

  1. Clipboard success shown even on failure - navigator.clipboard.writeText(...) is not awaited or caught, but "Copied"/"App ID copied" is shown unconditionally, plus an unhandled rejection on failure (unfocused document / permission). gamescope-builder.tsx:245-249, game-detail-header.tsx:54-57.
  2. Hardcoded version fallback contradicts its own comment - nav-bar.tsx:117 renders "v0.9.7" when appVersion is missing, while the comment at 53-56 says "render nothing rather than a stale hardcoded fallback." Matches package.json only by coincidence; will show a stale version after the next bump.

Fix

Await/catch clipboard writes and only toast on success; drop the hardcoded version fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions