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

Fix subscriptions double loading on launch #5930

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Oct 24, 2024

Fix subscriptions double loading on launch

Pull Request Type

  • Bugfix

Description

Currently when Fetch Subscriptions Automatically is enabled we start loading remotely and when the subscriptions cache is ready we load from that too, which results in the UI being all buggy, as you have two loading operations running in parallel. This pull request fixes that by not reacting to the subscription cache being ready if we are already loading remotely, which avoids the double loading problem.

Testing

As how noticable the bugginess is depends on lots of different variables it's difficult to say how to reproduce it consistently, however you can still check that this didn't break anything. So that fetching remotely still works and that if Fetch Subscriptions Automatically is disabled it still loads from the cache when it is ready.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 19a6124

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 24, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 24, 2024 15:37
@FreeTubeBot FreeTubeBot merged commit 9e00e06 into FreeTubeApp:development Oct 24, 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 Oct 24, 2024
@absidue absidue deleted the subscriptions-double-loading branch October 24, 2024 20:52
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
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