Skip to content

fix for Add new entry show the url from the last added entry in NoewDownloader#13411

Merged
Frenzie merged 2 commits into
koreader:masterfrom
Blizarre:fix-new-news-item-repeating
Mar 14, 2025
Merged

fix for Add new entry show the url from the last added entry in NoewDownloader#13411
Frenzie merged 2 commits into
koreader:masterfrom
Blizarre:fix-new-news-item-repeating

Conversation

@Blizarre

@Blizarre Blizarre commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

Fix issue #13408

In the news plugin, when you add 2 news feed in a row from the UI, for the second item the UI is populated with the exact same data that you entered on the first item, instead of showing the default "blank" values.

The empty_feed data structure is mutated every time the user adds a new feed item. This result in the UI showing the previously added feed as the "default" for new feeds.

This is confusing as it looks as if they were editing the previously inserted feed.

This PR just create a new empty feed item every time, so that mutations to that feed items are not an issue.


This change is Reviewable

@Frenzie Frenzie merged commit f7b3154 into koreader:master Mar 14, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants