Skip to content

fix(filecheck): skip existence check and UI badge when mode is none#865

Open
SnitchTeam wants to merge 1 commit intospotbye:mainfrom
SnitchTeam:feat/848-ui-badge-none-mode
Open

fix(filecheck): skip existence check and UI badge when mode is none#865
SnitchTeam wants to merge 1 commit intospotbye:mainfrom
SnitchTeam:feat/848-ui-badge-none-mode

Conversation

@SnitchTeam
Copy link
Copy Markdown

Follow-up to #848 (disable filecheck).

When existingFileCheckMode is set to "none", the backend still performed the full existence lookup and returned Exists: true, causing the "already exists" yellow badge to remain in the UI even though the download proceeded normally.

Changes:

  • Backend (app.go): early return Exists: false for all tracks when mode is "none"
  • Frontend (useDownload.ts): skip the 3 CheckFilesExistence Wails calls when mode is "none"
  • Frontend (settings.ts): extend ExistingFileCheckMode type and normalizeExistingFileCheckMode to include "none"

Build and vet pass.

- Early return CheckFilesExistence with Exists=false when existingFileCheckMode is 'none'
- Skip Wails CheckFilesExistence calls in useDownload.ts when mode is 'none'
- Extend ExistingFileCheckMode type and normalizeExistingFileCheckMode to include 'none'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant