Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter settings sections at build time instead of run time #5040

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Apr 29, 2024

Filter settings sections at build time instead of run time

Pull Request Type

  • Other - Performance improvement

Related issue

Follow up to #5010

Description

Filtering settings sections at build time instead of run time, means we have a bit less work to do at runtime and also shaves off 52 bytes from the renderer.js file and 556 bytes from the web.js file.

Testing

yarn run dev: Check that the Electron specific settings still show up (download, proxy, external player, experimental)
yarn run dev:web Check that the Electron specific settings are not displayed.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 3ab5c3d

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) April 29, 2024 20:19
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 29, 2024
@FreeTubeBot FreeTubeBot merged commit a5f3410 into FreeTubeApp:development Apr 30, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 30, 2024
@absidue absidue deleted the settings-filtering-build branch April 30, 2024 11:02
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.

5 participants