Skip to content

add loadMore button in Upload History widget (issue #3208) #3907

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mael-hf
Copy link

@mael-hf mael-hf commented Apr 13, 2025

  • fixes issue Allow more than 50 items (>500) in upload history #3208
  • I created a new storage called secondaryStorage, which keeps in memory the excess images.
  • the total number of images stored is 500 (as defined in src/utils/history.cpp and proposed in the issue).
  • the loadMore button is always at the bottom of the UI, except when there aren't anymore images to load, then it disappears.

mael-hf and others added 2 commits April 13, 2025 23:30
- fixes issue flameshot-org#3208 : flameshot-org#3208
- I created a new storage called secondaryStorage, which keeps in memory the excess images.
- the total number of images stored is 500 (as defined in src/utils/history.cpp).
- the loadMore button is always at the bottom of the UI, except when there aren't anymore images to load, then it disappears.
-fix a little error that would only load IMAGES_BATCH_SIZE instead of uploadhistorymax (defined in src/config/generalconf.cpp)
@mmahmoudian
Copy link
Member

Thanks for the contribution. The code looks good and clean to me apart from one comment I made. Let's also wait and see what other devs think about this.

@mmahmoudian mmahmoudian added this to the v13 milestone Apr 21, 2025
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.

3 participants