Added option to disable feed refresh on app start. #756
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now you can also terminate the refresh at any point with a new "Stop Refresh" nav element, and a "Stop" button when on the settings overlay.
feat: Add "Refresh on Start" toggle and "Cancel Refresh" functionality
Description
This PR introduces two key features to improve user control over feed updates: a new setting to toggle automatic refreshing on application startup, and the ability to cancel an ongoing refresh operation from both the navigation bar and the settings overlay. The motivation behind these changes is the blockage of UI during refresh, which can take a long time depending on the source library.
Key Changes
1. Refresh on Start Toggle
Settings > Preferences.setupAutoFetch), ensuring feeds will eventually update based on the configured interval.2. Cancel Refresh Functionality
Promise.race, allowing the fetch promise to be resolved early upon cancellation.Technical Details
REFRESH_ON_START_STORE_KEYand IPC handlers to persist the new setting.DefaultButtonin the loading overlay.Verification