Skip to content

Conversation

@YONN2222
Copy link
Owner

This pull request introduces a new feature flag to allow disabling the downloads functionality throughout the app. The flag is used to conditionally hide or disable all UI elements and logic related to downloads.

Feature flag implementation and conditional UI updates:

  • Added a new FeatureFlags.disableDownloads static boolean in disableDownloads.swift to control the visibility and availability of downloads features.

Conditional rendering in views:

  • Updated MediathekDetailView.swift to hide the download menu when downloads are disabled by checking the feature flag. [1] [2]
  • Modified PersonalView.swift to conditionally show the downloads tab and DownloadsListView only if downloads are enabled, and to handle navigation to the downloads tab appropriately based on the flag. [1] [2]
  • Updated SettingsView.swift to hide the "Download over WiFi only" toggle and related settings when downloads are disabled. [1] [2]

- Introduced `FeatureFlags` enum with a static variable `disableDownloads` to control the visibility of downloads-related UI elements.
- Updated `PersonalView` to conditionally display the downloads tab and its content based on the `disableDownloads` flag.
- Modified `SettingsView` to conditionally show the download settings toggle and delete downloads button only when downloads are enabled.
@YONN2222 YONN2222 self-assigned this Dec 25, 2025
@YONN2222 YONN2222 merged commit a1c4995 into main Dec 25, 2025
1 check passed
@YONN2222 YONN2222 deleted the fix/downloads branch December 25, 2025 17:33
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